forked from cloudfoundry/persi-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shared-units.yml
685 lines (622 loc) · 18.9 KB
/
shared-units.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
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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
---
# This pipeline is set automatically, any non-committed changes will be lost.
#
# To set the pipeline, run:
# fly -t cryo-runway set-pipeline -p shared-units -c shared-units.yml
#
# ************************************
# Secrets we need to run this pipeline
# ************************************
cerberus_secrets:
- &github_ssh_key ((github.ssh_key))
- &github_access_token ((github.access_token))
# SSH key/access token is used for accessing the GH release and PRs
- &github_user ((github.user))
- &github_email ((github.email))
#! GitHub email and username are used to sign the commits and PRs for go module auto bumps. Added 2024-02-19
- &goshims_uploader_role_id ((aws/volume-services/goshims-uploader.role_id))
- &goshims_uploader_role_secret ((aws/volume-services/goshims-uploader.role_secret))
- &goshims_uploader_role_arn ((aws/volume-services/goshims-uploader.role_arn))
# Used to get a semver of goshims
- &existingvolumebroker_uploader_role_id ((aws/volume-services/existingvolumebroker-uploader.role_id))
- &existingvolumebroker_uploader_role_secret ((aws/volume-services/existingvolumebroker-uploader.role_secret))
- &existingvolumebroker_uploader_role_arn ((aws/volume-services/existingvolumebroker-uploader.role_arn))
# Used to get a semver of existingvolumebroker
- &service_broker_store_uploader_role_id ((aws/volume-services/service-broker-store-uploader.role_id))
- &service_broker_store_uploader_role_secret ((aws/volume-services/service-broker-store-uploader.role_secret))
- &service_broker_store_uploader_role_arn ((aws/volume-services/service-broker-store-uploader.role_arn))
# Used to get a semver of service_broker_store_uploader
- &volumedriver_uploader_role_id ((aws/volume-services/volumedriver-uploader.role_id))
- &volumedriver_uploader_role_secret ((aws/volume-services/volumedriver-uploader.role_secret))
- &volumedriver_uploader_role_arn ((aws/volume-services/volumedriver-uploader.role_arn))
# Used to get a semver of volumedriver_uploader
- &volume_mount_options_uploader_role_id ((aws/volume-services/volume-mount-options-uploader.role_id))
- &volume_mount_options_uploader_role_secret ((aws/volume-services/volume-mount-options-uploader.role_secret))
- &volume_mount_options_uploader_role_arn ((aws/volume-services/volume-mount-options-uploader.role_arn))
# Used to get a semver of volume_mount_options_uploader
- &gcr_viewer_key ((gcr.viewer_key))
#! gcr_viewer_key was needed on 2024-03-24 for getting concourse container images from our GCR instance. Generated by using personal creds to log into the mapbu-cryogenics google cloud project.
# **************
# End of secrets
# **************
groups:
- name: auto-tagging
jobs:
- '*-version'
- '*-gate'
- name: merge-prs
jobs:
- '*-build'
- '*-unit'
- '*-merge-pr'
- name: updates
jobs:
- 'bump-go-module-*'
resource_types:
- name: semver
source:
repository: us-west2-docker.pkg.dev/mapbu-cryogenics/dockerhub-proxy-cache/concourse/semver-resource
tag: 1.6
username: _json_key
password: *gcr_viewer_key
type: registry-image
- name: pull-request
type: registry-image
source:
repository: us-west2-docker.pkg.dev/mapbu-cryogenics/concourse-resources/pr-queue-resource
username: _json_key
password: *gcr_viewer_key
resources:
- name: every-monday
type: time
icon: timer-outline
source:
days: [Monday]
- name: persi-ci
type: git
icon: github
source:
uri: https://github.com/cloudfoundry/persi-ci.git
branch: master
- name: existingvolumebroker
type: git
icon: github
source:
uri: [email protected]:cloudfoundry/existingvolumebroker.git
branch: master
private_key: *github_ssh_key
- name: existingvolumebroker-write
type: git
icon: git
source:
uri: [email protected]:cloudfoundry/existingvolumebroker.git
private_key: *github_ssh_key
commit_filter:
exclude:
- ;resource comment; This resource is used exclusively for pushing new changes
- name: goshims
type: git
icon: github
source:
uri: [email protected]:cloudfoundry/goshims.git
branch: master
private_key: *github_ssh_key
- name: goshims-version
type: semver
icon: counter
source:
access_key_id: *goshims_uploader_role_id
bucket: goshims-versions
initial_version: 0.1.0
key: current-version
region_name: us-east-1
secret_access_key: *goshims_uploader_role_secret
assume_role_arn: *goshims_uploader_role_arn
- name: existingvolumebroker-version
type: semver
icon: counter
source:
access_key_id: *existingvolumebroker_uploader_role_id
bucket: existingvolumebroker-versions
initial_version: 0.1.0
key: current-version
region_name: us-east-1
secret_access_key: *existingvolumebroker_uploader_role_secret
assume_role_arn: *existingvolumebroker_uploader_role_arn
- name: service-broker-store
type: git
icon: github
source:
uri: [email protected]:cloudfoundry/service-broker-store.git
branch: master
private_key: *github_ssh_key
- name: service-broker-store-write
type: git
icon: git
source:
uri: [email protected]:cloudfoundry/service-broker-store.git
private_key: *github_ssh_key
commit_filter:
exclude:
- ;resource comment; This resource is used exclusively for pushing new changes
- name: service-broker-store-version
type: semver
icon: counter
source:
access_key_id: *service_broker_store_uploader_role_id
bucket: service-broker-store-versions
initial_version: 0.1.0
key: current-version
region_name: us-east-1
secret_access_key: *service_broker_store_uploader_role_secret
assume_role_arn: *service_broker_store_uploader_role_arn
- name: volumedriver
type: git
icon: github
source:
uri: [email protected]:cloudfoundry/volumedriver.git
branch: master
private_key: *github_ssh_key
- name: volumedriver-write
type: git
icon: git
source:
uri: [email protected]:cloudfoundry/volumedriver.git
private_key: *github_ssh_key
commit_filter:
exclude:
- ;resource comment; This resource is used exclusively for pushing new changes
- name: volumedriver-version
type: semver
icon: counter
source:
access_key_id: *volumedriver_uploader_role_id
bucket: volumedriver-versions
initial_version: 0.1.0
key: current-version
region_name: us-east-1
secret_access_key: *volumedriver_uploader_role_secret
assume_role_arn: *volumedriver_uploader_role_arn
- name: volume-mount-options
type: git
icon: github
source:
uri: [email protected]:cloudfoundry/volume-mount-options.git
branch: master
private_key: *github_ssh_key
- name: volume-mount-options-version
type: semver
icon: counter
source:
access_key_id: *volume_mount_options_uploader_role_id
bucket: volume-mount-options-versions
initial_version: 0.1.0
key: current-version
region_name: us-east-1
secret_access_key: *volume_mount_options_uploader_role_secret
assume_role_arn: *volume_mount_options_uploader_role_arn
- name: volumedriver-pr
type: pull-request
icon: source-pull
source:
repository: cloudfoundry/volumedriver
base_branch: master
access_token: *github_access_token
disable_forks: true
- name: goshims-pr
type: pull-request
icon: source-pull
source:
repository: cloudfoundry/goshims
base_branch: master
access_token: *github_access_token
disable_forks: true
- name: existingvolumebroker-pr
type: pull-request
icon: source-pull
source:
repository: cloudfoundry/existingvolumebroker
base_branch: master
access_token: *github_access_token
disable_forks: true
- name: service-broker-store-pr
type: pull-request
icon: source-pull
source:
repository: cloudfoundry/service-broker-store
base_branch: master
access_token: *github_access_token
disable_forks: true
- name: volume-mount-options-pr
type: pull-request
icon: source-pull
source:
repository: cloudfoundry/volume-mount-options
base_branch: master
access_token: *github_access_token
disable_forks: true
- name: image-cryogenics-essentials
type: registry-image
icon: docker
source:
repository: us-west2-docker.pkg.dev/mapbu-cryogenics/essentials/cryo-essentials
username: _json_key
password: *gcr_viewer_key
- name: cryogenics-concourse-tasks
type: git
icon: github
source:
uri: [email protected]:pivotal/cryogenics-concourse-tasks.git
branch: main
private_key: *github_ssh_key
jobs:
- name: existingvolumebroker-unit
public: true
plan:
- in_parallel:
fail_fast: true
steps:
- get: persi-ci
- get: image-cryogenics-essentials
- get: existingvolumebroker
resource: existingvolumebroker-pr
trigger: true
- task: existingvolumebroker-unit
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/run_unit_ginkgo_v2.build.yml
input_mapping:
gomod: existingvolumebroker
- name: bump-existingvolumebroker-gate
serial: true
plan:
- get: every-monday
trigger: true
- get: existingvolumebroker
- name: bump-minor-existingvolumebroker-version
serial: true
plan:
- get: existingvolumebroker
passed: [bump-existingvolumebroker-gate]
trigger: true
- get: existingvolumebroker-version
- put: existingvolumebroker
params:
repository: existingvolumebroker
tag: existingvolumebroker-version/version
tag_prefix: "v"
only_tag: true
- put: existingvolumebroker-version
params:
bump: minor
- name: bump-go-module-existingvolumebroker
plan:
- in_parallel:
- get: source-repo
resource: existingvolumebroker
- get: cryogenics-concourse-tasks
- get: image-cryogenics-essentials
- get: every-monday
trigger: true
- task: bump-go-module
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/deps-automation/bump-go-module/task.yml
params:
GIT_USERNAME: *github_user
GIT_EMAIL: *github_email
ROOT_DIRECTORIES: .
- try:
load_var: go-module-update-branch
file: destination-repo/.update-branch-name
on_success:
do:
- put: existingvolumebroker-write
params:
repository: destination-repo
branch: &existingvolumebroker-bump-go-module-branch ((.:go-module-update-branch))
- task: create-go-module-bump-pull-request
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/github-automation/create-pr/task.yml
params:
BASE: master
BRANCH: *existingvolumebroker-bump-go-module-branch
LABELS: dependencies
TITLE: Bump go module ((.:go-module-update-branch))
MESSAGE: |
This is an automatically generated Pull Request from the Cryogenics CI Bot.
I have detected a new version of a go module and automatically bumped
it to benefit from the latest changes.
If this does not look right, please reach out to the mapbu-cryogenics team.
input_mapping:
source-repo: existingvolumebroker-write
- name: service-broker-store-unit
public: true
plan:
- in_parallel:
fail_fast: true
steps:
- get: persi-ci
- get: image-cryogenics-essentials
- get: service-broker-store
resource: service-broker-store-pr
trigger: true
- task: service-broker-store-unit
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/run_unit_ginkgo_v2.build.yml
input_mapping:
gomod: service-broker-store
- name: bump-service-broker-store-gate
serial: true
plan:
- get: every-monday
trigger: true
- get: service-broker-store
- name: bump-minor-service-broker-store-version
serial: true
plan:
- get: service-broker-store
passed: [bump-service-broker-store-gate]
trigger: true
- get: service-broker-store-version
- put: service-broker-store
params:
repository: service-broker-store
tag: service-broker-store-version/version
tag_prefix: "v"
only_tag: true
- put: service-broker-store-version
params:
bump: minor
- name: bump-go-module-service-broker-store
plan:
- in_parallel:
- get: source-repo
resource: service-broker-store
- get: cryogenics-concourse-tasks
- get: image-cryogenics-essentials
- get: every-monday
trigger: true
- task: bump-go-module
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/deps-automation/bump-go-module/task.yml
params:
GIT_USERNAME: *github_user
GIT_EMAIL: *github_email
ROOT_DIRECTORIES: .
- try:
load_var: go-module-update-branch
file: destination-repo/.update-branch-name
on_success:
do:
- put: service-broker-store-write
params:
repository: destination-repo
branch: &service-broker-store-bump-go-module-branch ((.:go-module-update-branch))
- task: create-go-module-bump-pull-request
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/github-automation/create-pr/task.yml
params:
BASE: master
BRANCH: *service-broker-store-bump-go-module-branch
LABELS: dependencies
TITLE: Bump go module ((.:go-module-update-branch))
MESSAGE: |
This is an automatically generated Pull Request from the Cryogenics CI Bot.
I have detected a new version of a go module and automatically bumped
it to benefit from the latest changes.
If this does not look right, please reach out to the mapbu-cryogenics team.
input_mapping:
source-repo: service-broker-store-write
- name: volumedriver-unit
public: true
plan:
- in_parallel:
fail_fast: true
steps:
- get: persi-ci
- get: image-cryogenics-essentials
- get: volumedriver
resource: volumedriver-pr
trigger: true
- task: volumedriver-unit
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/run_unit_ginkgo_v2.build.yml
input_mapping:
gomod: volumedriver
params:
NODES: 1
- name: bump-volumedriver-gate
serial: true
plan:
- get: every-monday
trigger: true
- get: volumedriver
- name: bump-minor-volumedriver-version
serial: true
plan:
- get: volumedriver
passed: [bump-volumedriver-gate]
trigger: true
- get: volumedriver-version
- put: volumedriver
params:
repository: volumedriver
tag: volumedriver-version/version
tag_prefix: "v"
only_tag: true
- put: volumedriver-version
params:
bump: minor
- name: bump-go-module-volumedriver
plan:
- in_parallel:
- get: source-repo
resource: volumedriver
- get: cryogenics-concourse-tasks
- get: image-cryogenics-essentials
- get: every-monday
trigger: true
- task: bump-go-module
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/deps-automation/bump-go-module/task.yml
params:
GIT_USERNAME: *github_user
GIT_EMAIL: *github_email
ROOT_DIRECTORIES: .
- try:
load_var: go-module-update-branch
file: destination-repo/.update-branch-name
on_success:
do:
- put: volumedriver-write
params:
repository: destination-repo
branch: &bump-volumedriver-go-module-branch ((.:go-module-update-branch))
- task: create-go-module-bump-pull-request
image: image-cryogenics-essentials
file: cryogenics-concourse-tasks/github-automation/create-pr/task.yml
params:
BASE: master
BRANCH: *bump-volumedriver-go-module-branch
LABELS: dependencies
TITLE: Bump go module ((.:go-module-update-branch))
MESSAGE: |
This is an automatically generated Pull Request from the Cryogenics CI Bot.
I have detected a new version of a go module and automatically bumped
it to benefit from the latest changes.
If this does not look right, please reach out to the mapbu-cryogenics team.
input_mapping:
source-repo: volumedriver-write
- name: volume-mount-options-unit
public: true
plan:
- in_parallel:
fail_fast: true
steps:
- get: persi-ci
- get: image-cryogenics-essentials
- get: volume-mount-options
resource: volume-mount-options-pr
trigger: true
- task: volume-mount-options-unit
image: image-cryogenics-essentials
file: persi-ci/scripts/ci/run_unit_ginkgo_v2.build.yml
input_mapping:
gomod: volume-mount-options
- name: bump-volume-mount-options-gate
serial: true
plan:
- get: every-monday
trigger: true
- get: volume-mount-options
- name: bump-minor-volume-mount-options-version
serial: true
plan:
- get: volume-mount-options
passed: [bump-volume-mount-options-gate]
trigger: true
- get: volume-mount-options-version
- put: volume-mount-options
params:
repository: volume-mount-options
tag: volume-mount-options-version/version
tag_prefix: "v"
only_tag: true
- put: volume-mount-options-version
params:
bump: minor
- name: goshims-build
public: true
plan:
- in_parallel:
fail_fast: true
steps:
- get: persi-ci
- get: image-cryogenics-essentials
- get: goshims
resource: goshims-pr
trigger: true
- task: build
image: image-cryogenics-essentials
config:
platform: linux
inputs:
- name: goshims
run:
path: bash
args:
- -exc
- |
cd goshims
go build ./...
- name: bump-goshims-gate
serial: true
plan:
- get: every-monday
trigger: true
- get: goshims
- name: bump-minor-goshims-version
serial: true
plan:
- get: goshims
passed: [bump-goshims-gate]
trigger: true
- get: goshims-version
- put: goshims
params:
repository: goshims
tag: goshims-version/version
tag_prefix: "v"
only_tag: true
- put: goshims-version
params:
bump: minor
- name: volumedriver-merge-pr
plan:
- get: volumedriver-pr
passed:
- volumedriver-unit
trigger: true
- put: volumedriver-pr
params:
merge: true
repository: volumedriver-pr
- name: goshims-merge-pr
plan:
- get: goshims-pr
passed:
- goshims-build
trigger: true
- put: goshims-pr
params:
merge: true
repository: goshims-pr
- name: existingvolumebroker-merge-pr
plan:
- get: existingvolumebroker-pr
passed:
- existingvolumebroker-unit
trigger: true
- put: existingvolumebroker-pr
params:
merge: true
repository: existingvolumebroker-pr
- name: service-broker-store-merge-pr
plan:
- get: service-broker-store-pr
passed:
- service-broker-store-unit
trigger: true
- put: service-broker-store-pr
params:
merge: true
repository: service-broker-store-pr
- name: volume-mount-options-merge-pr
plan:
- get: volume-mount-options-pr
passed:
- volume-mount-options-unit
trigger: true
- put: volume-mount-options-pr
params:
merge: true
repository: volume-mount-options-pr