forked from cloudfoundry/persi-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sync-pipelines-runway.sh
executable file
·274 lines (269 loc) · 9.05 KB
/
sync-pipelines-runway.sh
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
#!/bin/bash
set -x
fly -t runway set-pipeline -p keep-volume-service-pipelines-sync -c <(
cat <<EOF
#! this needs to come first, else all other vars can't be resolved.
#! cerberus creds are required to access the teams vault instance managed by cerberus. The creds have been created manually via the vault-cli targetting the teams cerberus vault. Example steps to create an approle are here: https://developer.hashicorp.com/vault/docs/auth/approle the required value for policies is `restricted-admin` the auth method is mounted on the standard path.
cerberus: &cerberus
role_id: ((cerberus-auth.role_id))
secret_id: ((cerberus-auth.secret_id))
cerberus_url: &cerberus_url ((cerberus-auth.url))
github_ssh_key: &github_ssh_key ((cerberus:github.ssh_key))
var_sources:
- name: cerberus
type: vault
config:
auth_backend: approle
auth_params: *cerberus
url: *cerberus_url
path_prefix: secret
resources:
- name: persi-ci
type: git
source:
uri: https://github.com/cloudfoundry/persi-ci.git
branch: master
- name: cryogenics-concourse-tasks
type: git
icon: github
source:
uri: [email protected]:pivotal/cryogenics-concourse-tasks.git
private_key: *github_ssh_key
- name: cryogenics-essentials
type: registry-image
source:
repository: cryogenics/essentials
registry_mirror:
host: harbor-repo.vmware.com
jobs:
- name: reset-docker-image-build
plan:
- in_parallel:
- get: persi-ci
trigger: true
- get: cryogenics-concourse-tasks
- get: cryogenics-essentials
- task: check-pipeline-for-stray-secrets
image: cryogenics-essentials
file: cryogenics-concourse-tasks/pipeline-linting/check-pipeline-for-stray-secrets/task.yml
input_mapping:
cryogenics-concourse-tasks: cryogenics-concourse-tasks
pipeline-repo: persi-ci
params:
PIPELINE_TO_CHECK: ./pipeline-repo/docker-image-build.yml
- set_pipeline: volume-services-docker-image-build
file: persi-ci/docker-image-build.yml
- name: reset-nfs-volume-release
plan:
- in_parallel:
- get: persi-ci
trigger: true
- get: cryogenics-concourse-tasks
- get: cryogenics-essentials
- task: check-pipeline-for-stray-secrets
image: cryogenics-essentials
file: cryogenics-concourse-tasks/pipeline-linting/check-pipeline-for-stray-secrets/task.yml
input_mapping:
cryogenics-concourse-tasks: cryogenics-concourse-tasks
pipeline-repo: persi-ci
params:
PIPELINE_TO_CHECK: ./pipeline-repo/nfs-volume-release.yml
- set_pipeline: nfs-volume-release
file: persi-ci/nfs-volume-release.yml
- name: reset-mapfs-release
plan:
- in_parallel:
- get: persi-ci
trigger: true
- get: cryogenics-concourse-tasks
- get: cryogenics-essentials
- task: check-pipeline-for-stray-secrets
image: cryogenics-essentials
file: cryogenics-concourse-tasks/pipeline-linting/check-pipeline-for-stray-secrets/task.yml
input_mapping:
cryogenics-concourse-tasks: cryogenics-concourse-tasks
pipeline-repo: persi-ci
params:
PIPELINE_TO_CHECK: ./pipeline-repo/mapfs-release.yml
- set_pipeline: mapfs-release
file: persi-ci/mapfs-release.yml
- name: reset-smb-volume-release
plan:
- in_parallel:
- get: persi-ci
trigger: true
- get: cryogenics-concourse-tasks
- get: cryogenics-essentials
- task: check-pipeline-for-stray-secrets
image: cryogenics-essentials
file: cryogenics-concourse-tasks/pipeline-linting/check-pipeline-for-stray-secrets/task.yml
input_mapping:
cryogenics-concourse-tasks: cryogenics-concourse-tasks
pipeline-repo: persi-ci
params:
PIPELINE_TO_CHECK: ./pipeline-repo/smb-volume-release.yml
- set_pipeline: smb-volume-release
file: persi-ci/smb-volume-release.yml
- name: reset-mapfs
plan:
- in_parallel:
- get: persi-ci
trigger: true
- get: cryogenics-concourse-tasks
- get: cryogenics-essentials
- task: check-pipeline-for-stray-secrets
image: cryogenics-essentials
file: cryogenics-concourse-tasks/pipeline-linting/check-pipeline-for-stray-secrets/task.yml
input_mapping:
cryogenics-concourse-tasks: cryogenics-concourse-tasks
pipeline-repo: persi-ci
params:
PIPELINE_TO_CHECK: ./pipeline-repo/mapfs.yml
- set_pipeline: mapfs
file: persi-ci/mapfs.yml
- name: reset-nfsbroker
plan:
- in_parallel:
- get: persi-ci
trigger: true
- get: cryogenics-concourse-tasks
- get: cryogenics-essentials
- task: check-pipeline-for-stray-secrets
image: cryogenics-essentials
file: cryogenics-concourse-tasks/pipeline-linting/check-pipeline-for-stray-secrets/task.yml
input_mapping:
cryogenics-concourse-tasks: cryogenics-concourse-tasks
pipeline-repo: persi-ci
params:
PIPELINE_TO_CHECK: ./pipeline-repo/nfsbroker.yml
- set_pipeline: nfsbroker
file: persi-ci/nfsbroker.yml
- name: reset-nfsv3driver
plan:
- in_parallel:
- get: persi-ci
trigger: true
- get: cryogenics-concourse-tasks
- get: cryogenics-essentials
- task: check-pipeline-for-stray-secrets
image: cryogenics-essentials
file: cryogenics-concourse-tasks/pipeline-linting/check-pipeline-for-stray-secrets/task.yml
input_mapping:
cryogenics-concourse-tasks: cryogenics-concourse-tasks
pipeline-repo: persi-ci
params:
PIPELINE_TO_CHECK: ./pipeline-repo/nfsv3driver.yml
- set_pipeline: nfsv3driver
file: persi-ci/nfsv3driver.yml
- name: reset-shared-units
plan:
- in_parallel:
- get: persi-ci
trigger: true
- get: cryogenics-concourse-tasks
- get: cryogenics-essentials
- task: check-pipeline-for-stray-secrets
image: cryogenics-essentials
file: cryogenics-concourse-tasks/pipeline-linting/check-pipeline-for-stray-secrets/task.yml
input_mapping:
cryogenics-concourse-tasks: cryogenics-concourse-tasks
pipeline-repo: persi-ci
params:
PIPELINE_TO_CHECK: ./pipeline-repo/shared-units.yml
- set_pipeline: shared-units
file: persi-ci/shared-units.yml
- name: reset-smbbroker
plan:
- in_parallel:
- get: persi-ci
trigger: true
- get: cryogenics-concourse-tasks
- get: cryogenics-essentials
- task: check-pipeline-for-stray-secrets
image: cryogenics-essentials
file: cryogenics-concourse-tasks/pipeline-linting/check-pipeline-for-stray-secrets/task.yml
input_mapping:
cryogenics-concourse-tasks: cryogenics-concourse-tasks
pipeline-repo: persi-ci
params:
PIPELINE_TO_CHECK: ./pipeline-repo/smbbroker.yml
- set_pipeline: smbbroker
file: persi-ci/smbbroker.yml
- name: reset-smbdriver
plan:
- in_parallel:
- get: persi-ci
trigger: true
- get: cryogenics-concourse-tasks
- get: cryogenics-essentials
- task: check-pipeline-for-stray-secrets
image: cryogenics-essentials
file: cryogenics-concourse-tasks/pipeline-linting/check-pipeline-for-stray-secrets/task.yml
input_mapping:
cryogenics-concourse-tasks: cryogenics-concourse-tasks
pipeline-repo: persi-ci
params:
PIPELINE_TO_CHECK: ./pipeline-repo/smbdriver.yml
- set_pipeline: smbdriver
file: persi-ci/smbdriver.yml
- name: reset-lts-nfs-volume-release-v5.0
plan:
- in_parallel:
- get: persi-ci
trigger: true
- get: cryogenics-concourse-tasks
- get: cryogenics-essentials
- task: check-pipeline-for-stray-secrets
image: cryogenics-essentials
file: cryogenics-concourse-tasks/pipeline-linting/check-pipeline-for-stray-secrets/task.yml
input_mapping:
cryogenics-concourse-tasks: cryogenics-concourse-tasks
pipeline-repo: persi-ci
params:
PIPELINE_TO_CHECK: ./pipeline-repo/lts-nfs-volume-release-v5.0.yml
- set_pipeline: lts-nfs-volume-release-v5.0
file: persi-ci/lts-nfs-volume-release-v5.0.yml
vars:
lts-nfs-branch: v5.0
nfs-semver-initial-version: 5.0.3
pas-pool-name: tas-2_11
- name: reset-lts-nfsbroker-v5.0
plan:
- in_parallel:
- get: persi-ci
trigger: true
- get: cryogenics-concourse-tasks
- get: cryogenics-essentials
- task: check-pipeline-for-stray-secrets
image: cryogenics-essentials
file: cryogenics-concourse-tasks/pipeline-linting/check-pipeline-for-stray-secrets/task.yml
input_mapping:
cryogenics-concourse-tasks: cryogenics-concourse-tasks
pipeline-repo: persi-ci
params:
PIPELINE_TO_CHECK: ./pipeline-repo/lts-nfsbroker-v5.0.yml
- set_pipeline: lts-nfsbroker-v5.0
file: persi-ci/lts-nfsbroker-v5.0.yml
vars:
lts-nfs-branch: v5.0
- name: reset-lts-nfsv3driver-v5.0
plan:
- in_parallel:
- get: persi-ci
trigger: true
- get: cryogenics-concourse-tasks
- get: cryogenics-essentials
- task: check-pipeline-for-stray-secrets
image: cryogenics-essentials
file: cryogenics-concourse-tasks/pipeline-linting/check-pipeline-for-stray-secrets/task.yml
input_mapping:
cryogenics-concourse-tasks: cryogenics-concourse-tasks
pipeline-repo: persi-ci
params:
PIPELINE_TO_CHECK: ./pipeline-repo/lts-nfsv3driver-v5.0.yml
- set_pipeline: lts-nfsv3driver-v5.0
file: persi-ci/lts-nfsv3driver-v5.0.yml
vars:
lts-nfs-branch: v5.0
EOF
)