@@ -86,6 +86,17 @@ functions:
86
86
working_dir : src/github.com/mongodb/mongodb-kubernetes
87
87
command : scripts/dev/recreate_python_venv.sh
88
88
89
+ docker_buildkit : &docker_buildkit
90
+ command : shell.exec
91
+ type : setup
92
+ params :
93
+ shell : bash
94
+ script : |
95
+ # Docker Hub workaround
96
+ # docker buildx needs the moby/buildkit image when setting up a builder so we pull it from our mirror
97
+ docker buildx create --driver=docker-container --driver-opt=image=268558157000.dkr.ecr.eu-west-1.amazonaws.com/docker-hub-mirrors/moby/buildkit:buildx-stable-1 --use
98
+ docker buildx inspect --bootstrap
99
+
89
100
" clone " :
90
101
- command : subprocess.exec
91
102
type : setup
@@ -508,15 +519,7 @@ functions:
508
519
509
520
pipeline :
510
521
- *switch_context
511
- - command : shell.exec
512
- type : setup
513
- params :
514
- shell : bash
515
- script : |
516
- # Docker Hub workaround
517
- # docker buildx needs the moby/buildkit image when setting up a builder so we pull it from our mirror
518
- docker buildx create --driver=docker-container --driver-opt=image=268558157000.dkr.ecr.eu-west-1.amazonaws.com/docker-hub-mirrors/moby/buildkit:buildx-stable-1 --use
519
- docker buildx inspect --bootstrap
522
+ - *docker_buildkit
520
523
- command : subprocess.exec
521
524
retry_on_failure : true
522
525
type : setup
@@ -526,18 +529,22 @@ functions:
526
529
working_dir : src/github.com/mongodb/mongodb-kubernetes
527
530
binary : scripts/dev/run_python.sh scripts/release/pipeline_main.py --parallel ${image_name} ${all_agents} ${build_scenario}
528
531
529
- # TODO: CLOUDP-335471 ; once all image builds are made with the new atomic pipeline, remove the following function
530
- legacy_pipeline :
532
+ pipeline_migrate_agents :
531
533
- *switch_context
532
- - command : shell.exec
534
+ - *docker_buildkit
535
+ - command : subprocess.exec
536
+ retry_on_failure : false
533
537
type : setup
534
538
params :
535
539
shell : bash
536
- script : |
537
- # Docker Hub workaround
538
- # docker buildx needs the moby/buildkit image when setting up a builder so we pull it from our mirror
539
- docker buildx create --driver=docker-container --driver-opt=image=268558157000.dkr.ecr.eu-west-1.amazonaws.com/docker-hub-mirrors/moby/buildkit:buildx-stable-1 --use
540
- docker buildx inspect --bootstrap
540
+ << : *e2e_include_expansions_in_env
541
+ working_dir : src/github.com/mongodb/mongodb-kubernetes
542
+ binary : scripts/release/pipeline_migrate_agent.sh
543
+
544
+ # TODO: CLOUDP-335471 ; once all image builds are made with the new atomic pipeline, remove the following function
545
+ legacy_pipeline :
546
+ - *switch_context
547
+ - *docker_buildkit
541
548
- command : ec2.assume_role
542
549
display_name : Assume IAM role with permissions to pull Kondukto API token
543
550
params :
0 commit comments