forked from tektoncd/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipelinerun-with-pipelinespec-and-taskspec.yaml
82 lines (80 loc) · 1.88 KB
/
pipelinerun-with-pipelinespec-and-taskspec.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
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
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
name: pipelinerun-with-taskspec-to-echo-good-morning
spec:
pipelineSpec:
tasks:
- name: echo-good-morning
taskSpec:
metadata:
labels:
app: "example"
steps:
- name: echo
image: ubuntu
script: |
#!/usr/bin/env bash
echo "Good Morning!"
---
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
name: pipelinerun-with-taskspec-to-echo-message
spec:
pipelineSpec:
params:
- name: MESSAGE
description: "Message, default is Hello World!"
type: string
default: "Hello World!"
tasks:
- name: echo-message
taskSpec:
params:
- name: MESSAGE
type: string
default: "Hello World!"
steps:
- name: echo
image: ubuntu
script: |
#!/usr/bin/env bash
echo "$(params.MESSAGE)"
params:
- name: MESSAGE
value: $(params.MESSAGE)
params:
- name: MESSAGE
value: "Good Morning!"
---
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
name: pipelinerun-with-taskspec-to-echo-greetings
spec:
pipelineSpec:
params:
- name: GREETINGS
description: "Greetings, default is Hello World!"
type: string
default: "Hello World!"
tasks:
- name: echo-greetings
taskSpec:
params:
- name: MESSAGE
type: string
default: "Hello World!"
steps:
- name: echo
image: ubuntu
script: |
#!/usr/bin/env bash
echo "$(params.MESSAGE)"
params:
- name: MESSAGE
value: $(params.GREETINGS)
params:
- name: GREETINGS
value: "Good Morning!"