-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.yml
83 lines (80 loc) · 1.61 KB
/
example.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
resource_types:
- name: static-list-resource
type: registry-image
source:
repository: taylorsilva/static-list-resource
resources:
- name: example-list
type: static-list-resource
source:
list:
- Kaladin
- Shallan
- Dalinar
- Navani
- name: complex-list
type: static-list-resource
source:
# list must always be of type string
list:
- |
name: Kaladin
type: windrunner
- |
name: Shallan
type: lightweaver
- |
name: Dalinar
type: bondsmith
- |
name: Navani
type: bondsmith
jobs:
- name: list-job
plan:
- in_parallel:
- get: example-list
- get: complex-list
- load_var: item
file: complex-list/item
format: yml
- task: display-selected-items
config:
platform: linux
image_resource:
type: registry-image
source: { repository: alpine }
inputs:
- name: example-list
- name: complex-list
params:
NAME: ((.:item.name))
TYPE: ((.:item.type))
run:
path: sh
args:
- -cx
- |
cat example-list/item
cat complex-list/item
echo $NAME
echo $TYPE
- put: next-item
resource: example-list
params:
previous: example-list/item
- task: display-selected-item
config:
platform: linux
image_resource:
type: registry-image
source: { repository: busybox }
inputs:
- name: next-item
run:
path: cat
args: ["next-item/item"]
- put: next-item
resource: complex-list
params:
previous: complex-list/item