-
Notifications
You must be signed in to change notification settings - Fork 10
/
app-deploy.yaml
38 lines (38 loc) · 1.1 KB
/
app-deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
name: app-deploy
spec:
# Check https://github.com/tektoncd/pipeline/blob/master/docs/pipelines.md on how to define parameters
# params:
resources:
- name: app-source
type: git
- name: app-image
type: image
tasks:
- name: build-java
taskRef:
name: build-app
params:
- name: contextDir
value: app
- name: mavenMirrorUrl
value: http://nexus:8081/nexus/content/groups/public
resources:
inputs:
- name: source
resource: app-source
outputs:
- name: builtImage
resource: app-image
- name: deploy-app
taskRef:
name: openshift-client
runAfter:
- build-java
params:
- name: ARGS
value: "run --image=dev.local/example/helloworld --image-pull-policy=Never --generator=deployment/apps.v1 helloworld"
# if you are OpenShift uncomment the line below.
#value: "run --image=image-registry.openshift-image-registry.svc:5000/tutorial/helloworld --image-pull-policy=Never --generator=deployment/apps.v1 helloworld"