-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathworkshop-pipeline-without-git-update.yml
91 lines (91 loc) · 2.15 KB
/
workshop-pipeline-without-git-update.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
labels:
app.kubernetes.io/instance: workshop
app.kubernetes.io/name: workshop
operator.tekton.dev/operand-name: openshift-pipelines-addons
pipeline.openshift.io/runtime: java
pipeline.openshift.io/runtime-version: openjdk-11-el7
pipeline.openshift.io/type: kubernetes
name: workshop
namespace: workshop-int
spec:
params:
- default: workshop
name: APP_NAME
type: string
- default: https://repository-git.apps.REPLACEME/gitea/quarkus-build-options.git
name: GIT_REPO
type: string
- default: master
name: GIT_REVISION
type: string
- default: quay-quay-quay.apps.REPLACEME/openshift_workshop-int/workshop
name: IMAGE_NAME
type: string
- default: .
name: PATH_CONTEXT
type: string
- default: openjdk-11-el7
name: VERSION
type: string
- default: workshop
name: IMAGESTREAM
type: string
- default: latest
name: IMAGESTREAMTAG
type: string
- default: quay-quay-quay.apps.REPLACEME
name: QUAY_URL
type: string
tasks:
- name: fetch-repository
params:
- name: url
value: $(params.GIT_REPO)
- name: revision
value: $(params.GIT_REVISION)
- name: deleteExisting
value: "true"
- name: sslVerify
value: "false"
taskRef:
kind: ClusterTask
name: git-clone
workspaces:
- name: output
workspace: workspace
- name: build
params:
- name: IMAGE
value: $(params.IMAGE_NAME)
- name: TLSVERIFY
value: "false"
- name: PATH_CONTEXT
value: $(params.PATH_CONTEXT)
- name: VERSION
value: $(params.VERSION)
- name: IMAGESTREAM
value: $(params.IMAGESTREAM)
- name: IMAGESTREAMTAG
value: $(params.IMAGESTREAMTAG)
runAfter:
- fetch-repository
taskRef:
kind: ClusterTask
name: s2i-java-workshop
workspaces:
- name: source
workspace: workspace
- name: deploy
params:
- name: SCRIPT
value: oc rollout status deploy/$(params.APP_NAME)
runAfter:
- build
taskRef:
kind: ClusterTask
name: openshift-client
workspaces:
- name: workspace