Skip to content

Commit c7a0a86

Browse files
committed
alpha to beta
1 parent 158307a commit c7a0a86

File tree

1 file changed

+71
-3
lines changed

1 file changed

+71
-3
lines changed

.tekton/all.yaml

Lines changed: 71 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,18 @@ spec:
127127
apiVersion: tekton.dev/v1beta1
128128
kind: EventListener
129129
metadata:
130-
name: BUILD-DEPLOY
130+
name: BUILD-DEPLOY-one-task
131131
spec:
132132
triggers:
133133
- binding:
134-
name: pipeline-BUILD-DEPLOY
134+
name: pipeline-BUILD-DEPLOY-one-task
135135
template:
136136
name: tt-common
137137
---
138138
apiVersion: tekton.dev/v1beta1
139139
kind: TriggerBinding
140140
metadata:
141-
name: pipeline-BUILD-DEPLOY
141+
name: pipeline-BUILD-DEPLOY-one-task
142142
spec:
143143
params:
144144
- name: script
@@ -187,6 +187,74 @@ spec:
187187
name: gasket
188188
---
189189
apiVersion: tekton.dev/v1beta1
190+
kind: EventListener
191+
metadata:
192+
name: BUILD-DEPLOY-two-task
193+
spec:
194+
triggers:
195+
- binding:
196+
name: pipeline-BUILD-DEPLOY-two-task
197+
template:
198+
name: tt-build-deploy
199+
---
200+
apiVersion: tekton.dev/v1beta1
201+
kind: TriggerBinding
202+
metadata:
203+
name: pipeline-BUILD-DEPLOY-two-task
204+
spec:
205+
params:
206+
- name: script
207+
value: ./scripts/pipeline-BUILD.sh ./scripts/pipeline-DEPLOY.sh
208+
---
209+
apiVersion: tekton.dev/v1beta1
210+
kind: TriggerTemplate
211+
metadata:
212+
name: tt-build-deploy
213+
spec:
214+
params:
215+
- name: script
216+
resourcetemplates:
217+
- apiVersion: tekton.dev/v1beta1
218+
kind: PipelineRun
219+
metadata:
220+
name: pipelinerun-$(uid)
221+
spec:
222+
pipelineRef:
223+
name: pipeline-build-deploy
224+
workspaces:
225+
- name: pipeline-workspace
226+
emptyDir: {}
227+
---
228+
apiVersion: tekton.dev/v1beta1
229+
kind: Pipeline
230+
metadata:
231+
name: pipeline-build-deploy
232+
spec:
233+
workspaces:
234+
- name: pipeline-workspace
235+
tasks:
236+
- name: build
237+
workspaces:
238+
- name: task-workspace
239+
workspace: pipeline-workspace
240+
params:
241+
- name: script
242+
value: ./scripts/pipeline-BUILD.sh
243+
taskRef:
244+
name: gasket
245+
- name: deploy
246+
workspaces:
247+
- name: task-workspace
248+
workspace: pipeline-workspace
249+
params:
250+
- name: script
251+
value: ./scripts/pipeline-DEPLOY.sh
252+
taskRef:
253+
name: gasket
254+
runAfter:
255+
- build
256+
---
257+
apiVersion: tekton.dev/v1beta1
190258
kind: Task
191259
metadata:
192260
name: gasket

0 commit comments

Comments
 (0)