-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-pipeline.yaml
1956 lines (1839 loc) · 51.1 KB
/
example-pipeline.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
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
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# yaml-language-server: $schema=./schema.json
display:
background_image: https://storage.googleapis.com/concourse-media-assets/concourse-emi-background-clean.png
resource_types:
- name: gcs
type: registry-image
source: {repository: frodenas/gcs-resource}
- name: bosh-release
type: registry-image
source: {repository: dpb587/bosh-release-resource}
- name: bosh-deployment
type: registry-image
source: {repository: cloudfoundry/bosh-deployment-resource}
- name: slack-notifier
type: registry-image
source: {repository: mockersf/concourse-slack-notifier}
- name: helm-chart
type: registry-image
source: {repository: linkyard/helm-chart-resource, tag: 2.17.0}
# TODO: get rid of this v1.6.4 is deployed in CI
- name: github-release
type: registry-image
source: {repository: concourse/github-release-resource}
groups:
- name: develop
jobs:
- unit
- dev-image
- integration
- testflight
- worker-runtime
- watsjs
- build-concourse
- build-image
- bin-smoke
- bin-smoke-lts
- check-docker-mounts
- bump-prod-*
- name: quickstart
jobs:
- quickstart-smoke
- name: k8s
jobs:
- k8s-*
- name: bosh
jobs:
- bosh-*
- name: images
jobs:
- resource-types-images
- unit-image
- build-golang-builder-image
- name: all
jobs:
- "*"
jobs:
- name: unit-image
public: true
serial: true
plan:
- put: unit-image
params: {image: image/image.tar}
on_failure: &failed-ci
put: notify
params:
mode: normal
alert_type: failed
- name: build-golang-builder-image
public: true
serial: true
plan:
- in_parallel:
- get: ci
- get: oci-build-task
- get: golang-linux
trigger: true
- get: ubuntu-bionic
trigger: true
params: {format: oci}
- task: build
image: oci-build-task
privileged: true
file: ci/tasks/build-golang-builder-image.yml
input_mapping: {base-image: ubuntu-bionic}
- load_var: version
file: golang-linux/version
- in_parallel:
- put: golang-builder-image
params:
image: image/image.tar
version: ((.:version))
bump_aliases: true
# push to latest (+ bare semver tags) to make local dev a bit easier
- put: golang-builder-image-latest
params:
image: image/image.tar
version: ((.:version))
bump_aliases: true
on_failure: *failed-ci
- name: unit
public: true
serial: true
plan:
- in_parallel:
- get: concourse
trigger: true
- get: unit-image
trigger: true
- get: ci
- task: yarn-test
image: unit-image
file: ci/tasks/yarn-test.yml
- timeout: 1h
in_parallel:
- task: unit
image: unit-image
file: ci/tasks/unit.yml
input_mapping: {concourse: built-concourse}
- task: fly-darwin
file: ci/tasks/fly-darwin.yml
- task: fly-windows
file: ci/tasks/fly-windows.yml
- task: unit-baggageclaim
image: unit-image
file: ci/tasks/unit-baggageclaim.yml
privileged: true
input_mapping: {concourse: built-concourse}
- task: unit-baggageclaim-darwin
file: ci/tasks/unit-baggageclaim-darwin.yml
input_mapping: {concourse: built-concourse}
- task: unit-baggageclaim-windows
file: ci/tasks/unit-baggageclaim-windows.yml
input_mapping: {concourse: built-concourse}
on_failure: &failed-concourse
put: notify
params:
mode: normal
alert_type: failed
- name: resource-types-images
public: true
serial: true
plan:
- in_parallel:
- get: oci-build-task
- get: ci
- in_parallel:
- do:
- in_parallel:
- get: bosh-io-release-resource-alpine
trigger: true
- get: bosh-io-stemcell-resource-alpine
trigger: true
- get: cf-resource-alpine
trigger: true
- get: docker-image-resource-alpine
trigger: true
- get: git-resource-alpine
trigger: true
- get: github-release-resource-alpine
trigger: true
- get: hg-resource-alpine
trigger: true
- get: mock-resource-alpine
trigger: true
- get: pool-resource-alpine
trigger: true
- get: registry-image-resource-alpine
trigger: true
- get: s3-resource-alpine
trigger: true
- get: semver-resource-alpine
trigger: true
- get: time-resource-alpine
trigger: true
- get: tracker-resource-alpine
trigger: true
- task: build-alpine
input_mapping:
bosh-io-release-resource: bosh-io-release-resource-alpine
bosh-io-stemcell-resource: bosh-io-stemcell-resource-alpine
cf-resource: cf-resource-alpine
docker-image-resource: docker-image-resource-alpine
git-resource: git-resource-alpine
github-release-resource: github-release-resource-alpine
hg-resource: hg-resource-alpine
mock-resource: mock-resource-alpine
pool-resource: pool-resource-alpine
registry-image-resource: registry-image-resource-alpine
s3-resource: s3-resource-alpine
semver-resource: semver-resource-alpine
time-resource: time-resource-alpine
tracker-resource: tracker-resource-alpine
output_mapping: {image: image_alpine}
image: oci-build-task
privileged: true
file: ci/tasks/build-resource-types-image.yml
- do:
- in_parallel:
- get: bosh-io-release-resource-ubuntu
trigger: true
- get: bosh-io-stemcell-resource-ubuntu
trigger: true
- get: cf-resource-ubuntu
trigger: true
- get: docker-image-resource-ubuntu
trigger: true
- get: git-resource-ubuntu
trigger: true
- get: github-release-resource-ubuntu
trigger: true
- get: hg-resource-ubuntu
trigger: true
- get: mock-resource-ubuntu
trigger: true
- get: pool-resource-ubuntu
trigger: true
- get: registry-image-resource-ubuntu
trigger: true
- get: s3-resource-ubuntu
trigger: true
- get: semver-resource-ubuntu
trigger: true
- get: time-resource-ubuntu
trigger: true
- get: tracker-resource-ubuntu
trigger: true
- task: build-ubuntu
input_mapping:
bosh-io-release-resource: bosh-io-release-resource-ubuntu
bosh-io-stemcell-resource: bosh-io-stemcell-resource-ubuntu
cf-resource: cf-resource-ubuntu
docker-image-resource: docker-image-resource-ubuntu
git-resource: git-resource-ubuntu
github-release-resource: github-release-resource-ubuntu
hg-resource: hg-resource-ubuntu
mock-resource: mock-resource-ubuntu
pool-resource: pool-resource-ubuntu
registry-image-resource: registry-image-resource-ubuntu
s3-resource: s3-resource-ubuntu
semver-resource: semver-resource-ubuntu
time-resource: time-resource-ubuntu
tracker-resource: tracker-resource-ubuntu
output_mapping: {image: image_ubuntu}
image: oci-build-task
privileged: true
file: ci/tasks/build-resource-types-image.yml
- in_parallel:
- put: resource-types-alpine-image
params: {image: image_alpine/image.tar}
get_params: {format: oci}
- put: resource-types-ubuntu-image
params: {image: image_ubuntu/image.tar}
get_params: {format: oci}
- name: dev-image
public: true
serial: true
plan:
- in_parallel:
fail_fast: true
steps:
- get: concourse
trigger: true
- get: golang-builder-image
trigger: true
params: {format: oci}
- get: golang-builder-image-rootfs
resource: golang-builder-image
trigger: true
params: {format: rootfs}
- get: gdn
trigger: true
- get: containerd
trigger: true
- get: runc
trigger: true
- get: cni
trigger: true
- get: dumb-init
trigger: true
- get: resource-types-alpine-image
passed: [resource-types-images]
- get: resource-types-ubuntu-image
passed: [resource-types-images]
- get: unit-image
- get: oci-build-task
- get: ci
- in_parallel:
fail_fast: true
steps:
- task: yarn-build
image: unit-image
file: ci/tasks/yarn-build.yml
- task: fly-linux
file: ci/tasks/fly-build-linux.yml
image: golang-builder-image-rootfs
- task: fly-windows
file: ci/tasks/fly-build-windows.yml
- task: fly-darwin
file: ci/tasks/fly-build-darwin.yml
- task: build
image: oci-build-task
privileged: true
input_mapping: {concourse: built-concourse, resource-types-image: resource-types-alpine-image}
file: ci/tasks/build-dev-image.yml
- put: dev-image
params: {image: image/image.tar}
get_params: {format: oci}
on_failure: *failed-concourse
- name: worker-runtime
public: true
max_in_flight: 1
plan:
- in_parallel:
- get: concourse
passed: [unit, dev-image]
trigger: true
- get: dev-image
passed: [dev-image]
trigger: true
- get: ci
- task: integration
image: dev-image
privileged: true
timeout: 1h
file: ci/tasks/containerd-integration.yml
on_failure: *failed-concourse
- name: check-docker-mounts
public: true
max_in_flight: 1
plan:
- get: concourse
passed: [unit, dev-image]
trigger: true
- get: unit-image
- get: ci
- task: docker-mounts
image: unit-image
privileged: true
file: ci/tasks/docker-mounts.yml
- name: testflight
public: true
max_in_flight: 2
plan:
- in_parallel:
- get: concourse
passed: [unit, dev-image]
trigger: true
- get: unit-image
- get: dev-image
passed: [dev-image]
trigger: true
params: {format: oci}
- get: postgres-image
params: {format: oci}
- get: postgres-image-legacy
params: {format: oci}
- get: ci
- across:
- var: runtime
values:
- guardian
- containerd
max_in_flight: all
- var: postgres-image
values:
- postgres-image
- postgres-image-legacy
max_in_flight: all
task: testflight
image: unit-image
privileged: true
timeout: 1h
params:
RUNTIME: ((.:runtime))
file: ci/tasks/docker-compose-testflight.yml
input_mapping: {postgres-image: ((.:postgres-image))}
on_failure: *failed-concourse
- name: watsjs
public: true
max_in_flight: 2
plan:
- in_parallel:
- get: concourse
passed: [unit, dev-image]
trigger: true
- get: unit-image
- get: dev-image
passed: [dev-image]
trigger: true
params: {format: oci}
- get: postgres-image
params: {format: oci}
- get: ci
- task: watsjs
image: unit-image
privileged: true
timeout: 1h
file: ci/tasks/docker-compose-watsjs.yml
on_failure: *failed-concourse
- name: integration
public: true
serial: true
plan:
- in_parallel:
- get: concourse
passed: [unit, dev-image]
trigger: true
- get: dev-image
passed: [dev-image]
params: {format: oci}
trigger: true
- get: unit-image
- get: concourse-image
params: {format: oci}
- get: postgres-image
params: {format: oci}
- get: vault-image
params: {format: oci}
- get: ci
- task: integration
privileged: true
image: unit-image
file: ci/tasks/integration.yml
on_failure: *failed-concourse
- name: k8s-smoke
public: true
serial: true
plan:
- in_parallel:
- get: concourse
passed: [build-image]
trigger: true
- get: concourse-dev-alpine-image
passed: [build-image]
params: {format: oci}
trigger: true
- get: concourse-dev-ubuntu-image
passed: [build-image]
params: {format: oci}
trigger: true
- get: concourse-chart
trigger: true
- get: unit-image
- get: ci
- try:
task: try-delete
image: unit-image
file: ci/tasks/k8s-delete.yml
params:
KUBE_CONFIG: ((k8s_topgun.kube_config))
SERVICE_ACCOUNT_KEY: ((k8s_topgun.service_account_key))
RELEASE_NAME: concourse-smoke
CONCOURSE_IMAGE: concourse/concourse-dev
- task: deploy
image: unit-image
input_mapping: {image-info: concourse-dev-alpine-image}
file: ci/tasks/k8s-deploy.yml
params:
KUBE_CONFIG: ((k8s_topgun.kube_config))
SERVICE_ACCOUNT_KEY: ((k8s_topgun.service_account_key))
RELEASE_NAME: concourse-smoke
CONCOURSE_IMAGE: concourse/concourse-dev
- task: k8s-smoke
image: unit-image
file: ci/tasks/k8s-smoke.yml
params:
KUBE_CONFIG: ((k8s_topgun.kube_config))
SERVICE_ACCOUNT_KEY: ((k8s_topgun.service_account_key))
RELEASE_NAME: concourse-smoke
MAX_TICKS: "180"
- task: delete
image: unit-image
file: ci/tasks/k8s-delete.yml
params:
KUBE_CONFIG: ((k8s_topgun.kube_config))
SERVICE_ACCOUNT_KEY: ((k8s_topgun.service_account_key))
RELEASE_NAME: concourse-smoke
CONCOURSE_IMAGE: concourse/concourse-dev
on_failure: *failed-concourse
- name: k8s-topgun
public: true
serial: true
plan:
- in_parallel:
- get: concourse
passed: [k8s-smoke]
tags: [k8s-topgun]
trigger: true
- get: concourse-dev-alpine-image
params: {format: oci}
passed: [k8s-smoke]
tags: [k8s-topgun]
trigger: true
- get: concourse-dev-ubuntu-image
params: {format: oci}
passed: [k8s-smoke]
tags: [k8s-topgun]
trigger: true
- get: unit-image
tags: [k8s-topgun]
- get: concourse-chart
passed: [k8s-smoke]
tags: [k8s-topgun]
trigger: true
- get: prometheus-chart
tags: [k8s-topgun]
params: {untar: true}
- get: postgresql-chart
tags: [k8s-topgun]
params: {untar: true}
- get: ci
tags: [k8s-topgun]
- task: k8s-topgun
file: ci/tasks/k8s-topgun.yml
tags: [k8s-topgun]
image: unit-image
input_mapping: {concourse-rc-image: concourse-dev-alpine-image}
params:
IN_CLUSTER: "true"
KUBE_CONFIG: ((k8s_topgun.kube_config))
SERVICE_ACCOUNT_KEY: ((k8s_topgun.service_account_key))
CONCOURSE_IMAGE_NAME: concourse/concourse-dev
on_failure: *failed-concourse
- name: k8s-check-helm-params
public: true
max_in_flight: 1
plan:
- in_parallel:
- get: concourse
passed: [build-image]
trigger: true
- get: concourse-dev-alpine-image
passed: [build-image]
trigger: true
- get: concourse-dev-ubuntu-image
passed: [build-image]
trigger: true
- get: linux-dev-ubuntu
passed: [build-image]
trigger: true
- get: unit-image
- get: concourse-chart
trigger: true
- get: ci
- task: check-params
file: ci/tasks/check-distribution-env.yml
image: unit-image
input_mapping: {distribution: concourse-chart, linux-rc: linux-dev-ubuntu}
params: {DISTRIBUTION: helm}
on_failure: *failed-concourse
- name: build-concourse
old_name: build-rc
public: true
serial: true
plan:
- in_parallel:
- get: concourse
passed: [dev-image, testflight, watsjs, integration, worker-runtime]
trigger: true
- get: unit-image
passed: [dev-image]
- get: dev-image
passed: [dev-image]
trigger: true
- get: golang-builder-image
passed: [dev-image]
- get: ci
- get: resource-types-alpine-image
passed: [dev-image]
- get: resource-types-ubuntu-image
passed: [dev-image]
- in_parallel:
- task: fly-linux
file: ci/tasks/fly-build-linux.yml
image: golang-builder-image
- task: fly-windows
file: ci/tasks/fly-build-windows.yml
- task: fly-darwin
file: ci/tasks/fly-build-darwin.yml
- in_parallel:
fail_fast: true
steps:
- task: hoist-linux-dependencies
file: ci/tasks/hoist-linux-dependencies.yml
image: dev-image
- task: hoist-resource-types-alpine
file: ci/tasks/hoist-linux-resource-types.yml
image: resource-types-alpine-image
output_mapping: {resource-types: resource-types-alpine}
- task: hoist-resource-types-ubuntu
file: ci/tasks/hoist-linux-resource-types.yml
image: resource-types-ubuntu-image
output_mapping: {resource-types: resource-types-ubuntu}
- task: yarn-build
file: ci/tasks/yarn-build.yml
image: unit-image
- task: get-dev-version
file: ci/tasks/get-dev-version.yml
image: golang-builder-image
- in_parallel:
fail_fast: true
steps:
- task: concourse-linux-alpine
file: ci/tasks/concourse-build-linux.yml
image: golang-builder-image
params: {PLATFORM: linux}
input_mapping: {concourse: built-concourse, resource-types: resource-types-alpine}
output_mapping: {concourse-tarball: concourse-linux-alpine}
- task: concourse-linux-ubuntu
image: golang-builder-image
params: {PLATFORM: linux}
file: ci/tasks/concourse-build-linux.yml
input_mapping: {concourse: built-concourse, resource-types: resource-types-ubuntu}
output_mapping: {concourse-tarball: concourse-linux-ubuntu}
- task: concourse-windows
file: ci/tasks/concourse-build-windows.yml
input_mapping: {concourse: built-concourse}
- task: concourse-darwin
file: ci/tasks/concourse-build-darwin.yml
input_mapping: {concourse: built-concourse}
output_mapping: {concourse-tarball: concourse-darwin}
- in_parallel:
- put: linux-dev-alpine
params: {file: concourse-linux-alpine/concourse-*.tgz}
inputs: [concourse-linux-alpine]
- put: linux-dev-ubuntu
params: {file: concourse-linux-ubuntu/concourse-*.tgz}
inputs: [concourse-linux-ubuntu]
- put: windows-dev
params: {file: concourse-windows/concourse-*.zip}
inputs: [concourse-windows]
- put: darwin-dev
params: {file: concourse-darwin/concourse-*.tgz}
inputs: [concourse-darwin]
on_failure: *failed-concourse
- name: build-image
old_name: build-rc-image
public: true
serial: true
plan:
- in_parallel:
- get: concourse
passed: [build-concourse]
trigger: true
- get: unit-image
- get: linux-dev-alpine
trigger: true
passed: [build-concourse]
- get: linux-dev-ubuntu
trigger: true
passed: [build-concourse]
- get: concourse-docker
trigger: true
- get: oci-build-task
- get: ci
- in_parallel:
fail_fast: true
steps:
- task: build-alpine
file: concourse-docker/ci/build-image.yml
image: oci-build-task
input_mapping: {linux-rc: linux-dev-alpine}
output_mapping: {image: image-alpine}
privileged: true
- task: build-ubuntu
file: concourse-docker/ci/build-image.yml
image: oci-build-task
input_mapping: {linux-rc: linux-dev-ubuntu}
output_mapping: {image: image-ubuntu}
privileged: true
- in_parallel:
fail_fast: true
steps:
- put: concourse-dev-alpine-image
inputs: [image-alpine]
params:
image: image-alpine/image.tar
- put: concourse-dev-ubuntu-image
inputs: [image-ubuntu]
params:
image: image-ubuntu/image.tar
on_failure: *failed-concourse
- name: bump-prod-web
public: true
serial: true
plan:
- in_parallel:
- get: infrastructure
- get: concourse-image
resource: concourse-dev-alpine-image
passed: [build-image]
params: {skip_download: true}
- load_var: concourse_image_repo
file: concourse-image/repository
- load_var: concourse_image_digest
file: concourse-image/digest
- task: bump-versions
file: infrastructure/tasks/patch-yaml.yml
input_mapping: {repo: infrastructure}
output_mapping: {repo-bumped: infrastructure-bumped}
params:
FILE: terraform/environments/production/variables.yml
PATCH:
concourse_web_image_repo: ((.:concourse_image_repo))
concourse_web_image_digest: ((.:concourse_image_digest))
COMMIT: bump production web to concourse dev
- put: infrastructure-bump
inputs: [infrastructure-bumped]
params:
repository: infrastructure-bumped
branch: master
on_failure: *failed-concourse
- name: bump-prod-workers
public: true
serial: true
plan:
- in_parallel:
- get: infrastructure
- get: concourse-image
resource: concourse-dev-alpine-image
passed: [build-image]
params: {skip_download: true}
- get: windows-dev
passed: [build-concourse]
params: {skip_download: "true"}
- get: darwin-dev
passed: [build-concourse]
params: {skip_download: "true"}
- load_var: concourse_image_repo
file: concourse-image/repository
- load_var: concourse_image_digest
file: concourse-image/digest
- task: convert-windows-url
file: infrastructure/tasks/convert-gs-url.yml
input_mapping: {input: windows-dev}
output_mapping: {output: windows}
- task: convert-darwin-url
file: infrastructure/tasks/convert-gs-url.yml
input_mapping: {input: darwin-dev}
output_mapping: {output: darwin}
- load_var: concourse_windows_bundle_url
file: windows/url
- load_var: concourse_darwin_bundle_url
file: darwin/url
- task: bump-versions
file: infrastructure/tasks/patch-yaml.yml
input_mapping: {repo: infrastructure}
output_mapping: {repo-bumped: infrastructure-bumped}
params:
FILE: terraform/environments/production/variables.yml
PATCH:
concourse_worker_image_repo: ((.:concourse_image_repo))
concourse_worker_image_digest: ((.:concourse_image_digest))
concourse_windows_bundle_url: ((.:concourse_windows_bundle_url))
concourse_darwin_bundle_url: ((.:concourse_darwin_bundle_url))
COMMIT: bump production workers to concourse dev
- put: infrastructure-bump
inputs: [infrastructure-bumped]
params:
repository: infrastructure-bumped
branch: master
on_failure: *failed-concourse
- name: bin-smoke
public: true
serial: true
plan:
- in_parallel:
- get: concourse
passed: [build-concourse]
trigger: true
- get: linux-dev-ubuntu
passed: [build-concourse]
trigger: true
- get: unit-image
- get: ci
- across:
- var: runtime
values:
- guardian
- containerd
max_in_flight: all
do:
- task: terraform-smoke
image: unit-image
file: ci/tasks/terraform-smoke.yml
input_mapping: {linux-rc: linux-dev-ubuntu}
params:
GCP_PROJECT: cf-concourse-production
GCP_KEY: ((concourse_smoke_gcp_key))
SSH_KEY: ((concourse_smoke_ssh_key))
WORKSPACE: bin-smoke-((.:runtime))
TF_VAR_RUNTIME: ((.:runtime))
- task: smoke
image: unit-image
file: ci/tasks/smoke.yml
input_mapping: {endpoint-info: outputs}
timeout: 20m
on_failure: *failed-concourse
- name: bin-smoke-lts
public: true
serial: true
plan:
- in_parallel:
- get: concourse
passed: [build-concourse]
trigger: true
- get: linux-dev-ubuntu
passed: [build-concourse]
trigger: true
- get: unit-image
- get: ci
- across:
- var: runtime
values:
- guardian
- containerd
max_in_flight: all
- var: gcp-image
values:
- debian-10-buster-v20210122
- ubuntu-1804-lts
- ubuntu-2004-lts
max_in_flight: 1
do:
- task: terraform-smoke
image: unit-image
file: ci/tasks/terraform-smoke.yml
input_mapping: {linux-rc: linux-dev-ubuntu}
params:
GCP_PROJECT: cf-concourse-production
GCP_KEY: ((concourse_smoke_gcp_key))
SSH_KEY: ((concourse_smoke_ssh_key))
WORKSPACE: bin-smoke-lts-((.:runtime))
TF_VAR_GCP_IMAGE: ((.:gcp-image))
TF_VAR_RUNTIME: ((.:runtime))
- task: smoke
image: unit-image
file: ci/tasks/smoke.yml
input_mapping: {endpoint-info: outputs}
timeout: 20m
on_failure: *failed-concourse
- name: quickstart-smoke
public: true
serial: true
plan:
- in_parallel:
- get: concourse
passed: [build-image]
trigger: true
- get: concourse-dev-alpine-image
passed: [build-image]
params: {format: oci}
trigger: true
- get: unit-image
- get: ci
- get: docs
- task: quickstart-smoke
privileged: true
image: unit-image
file: ci/tasks/quickstart-smoke.yml
input_mapping: {concourse-rc-image: concourse-dev-alpine-image}
params:
RELEASE_NAME: concourse-smoke
on_failure: *failed-concourse
- name: bosh-check-props
public: true
max_in_flight: 1
plan:
- in_parallel:
- get: concourse
passed: [bin-smoke]
trigger: true
- get: unit-image
- get: linux-dev-ubuntu
passed: [bin-smoke]
trigger: true
- get: concourse-release-repo
trigger: true
- get: ci
- task: check-props
file: ci/tasks/check-distribution-env.yml
image: unit-image
input_mapping: {distribution: concourse-release-repo, linux-rc: linux-dev-ubuntu}
params: {DISTRIBUTION: bosh}
on_failure: *failed-concourse
- name: bosh-bump
public: true
serial: true
plan:
- in_parallel:
- get: concourse
passed: [build-concourse]
trigger: true
- get: unit-image
- get: linux-dev-ubuntu
passed: [build-concourse]
trigger: true
- get: windows-dev
passed: [build-concourse]
trigger: true
- get: concourse-release-repo
- get: ci
- task: bump-concourse-blobs
file: ci/tasks/bump-concourse-blobs.yml
image: unit-image
input_mapping: { linux-rc: linux-dev-ubuntu, windows-rc: windows-dev }
params: {GCP_JSON_KEY: ((concourse_artifacts_json_key))}
- put: concourse-release-repo
params: {repository: bumped-concourse-release-repo}
- name: bosh-upload-releases
public: true
serial: true
plan:
- in_parallel:
# these don't trigger, to ensure that the job gets triggered by
# concourse-release, which is unfortunately decoupled from the resource
# that we 'put' to.
- get: concourse
passed: [bosh-bump]
- get: unit-image
- get: concourse-release
trigger: true
- get: postgres-release
trigger: true
- get: bpm-release
trigger: true
- get: gcp-bionic-stemcell
trigger: true
- get: bbr-sdk-release
trigger: true
- get: vault-release
trigger: true
- get: credhub-release
trigger: true
- get: uaa-release
trigger: true
- get: bbr
trigger: true
- get: ci
- task: upload-releases
tags: [bosh]
file: ci/tasks/upload-releases.yml
image: unit-image
params:
BOSH_ENVIRONMENT: https://10.0.0.6:25555
BOSH_CA_CERT: ((testing_bosh_ca_cert))
BOSH_CLIENT: ((testing_bosh_client.id))
BOSH_CLIENT_SECRET: ((testing_bosh_client.secret))
- name: bosh-smoke-containerd
public: true
serial: true
plan:
- in_parallel:
# these don't trigger, to ensure that the job gets triggered by
# concourse-release, which is unfortunately decoupled from the resource
# that we 'put' to.
- get: concourse
passed: [bosh-upload-releases]
- get: unit-image
passed: [bosh-upload-releases]
- get: concourse-release
passed: [bosh-upload-releases]
trigger: true