-
Notifications
You must be signed in to change notification settings - Fork 120
/
pipeline-taskrun-pipelinerun.yaml
56 lines (56 loc) · 1.51 KB
/
pipeline-taskrun-pipelinerun.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
47
48
49
50
51
52
53
54
55
56
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: pipeline-taskrun-pipelinerun-
spec:
workspaces:
- name: where-it-all-happens
persistentVolumeClaim:
claimName: pvc
- name: gcs-creds
secret:
secretName: mikey
pipelineSpec:
workspaces:
- name: where-it-all-happens
- name: gcs-creds
tasks:
- name: before
taskSpec:
steps:
- name: echo
image: ubuntu
script: |
#!/usr/bin/env bash
echo "Hello before Pipeline to TaskRun!"
- name: pipeline-as-taskrun
taskRef:
apiVersion: tekton.dev/v1alpha1
kind: PipelineToTaskRun
name: clone-test-upload
runAfter:
- before
params:
- name: git-url
value: "https://github.com/tektoncd/chains"
- name: package
value: "github.com/tektoncd/chains/pkg"
- name: packages
value: "./pkg/..."
- name: gcs-location
value: "gs://christies-empty-bucket"
workspaces:
- name: where-it-all-happens
workspace: where-it-all-happens
- name: gcs-creds
workspace: gcs-creds
- name: after
taskSpec:
steps:
- name: echo
image: ubuntu
script: |
#!/usr/bin/env bash
echo "Bye after Pipeline to TaskRun!"
runAfter:
- pipeline-as-taskrun