-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpipeline-deploy.yaml
46 lines (46 loc) · 1.28 KB
/
pipeline-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
39
40
41
42
43
44
45
46
apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
name: rhd-tutorial-deploy
spec:
resources:
- name: app-git
type: git
- name: app-image
type: image
params:
- name: deploymentConfig
description: The application name i.e. OpenShift/Kubernetes Deployment name
- name: applicationSrcDir
description: The source directory of the application within the source repository
tasks:
- name: build
taskRef:
name: build-app
params:
- name: contextDir
value: "$(params.applicationSrcDir)"
# if you have different repository manager update the value below
# if don't wish to use nexus or repo manager then comment the name/value below
- name: mavenMirrorUrl
value: "http://nexus.rhd-workshop-infra:8081/nexus/content/groups/public"
- name: dockerFile
value: "Dockerfile"
resources:
inputs:
- name: source
resource: app-git
outputs:
- name: builtImage
resource: app-image
- name: deploy
taskRef:
name: openshift-client
runAfter:
- build
params:
- name: ARGS
value:
- "rollout"
- "latest"
- "$(params.deploymentConfig)"