@@ -517,30 +517,36 @@ functions:
517
517
# docker buildx needs the moby/buildkit image when setting up a builder so we pull it from our mirror
518
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
519
docker buildx inspect --bootstrap
520
- - command : ec2.assume_role
521
- display_name : Assume IAM role with permissions to pull Kondukto API token
520
+ - command : subprocess.exec
521
+ retry_on_failure : true
522
+ type : setup
522
523
params :
523
- role_arn : ${kondukto_role_arn}
524
+ shell : bash
525
+ << : *e2e_include_expansions_in_env
526
+ working_dir : src/github.com/mongodb/mongodb-kubernetes
527
+ binary : scripts/dev/run_python.sh scripts/release/pipeline_main.py --parallel ${image_name} ${all_agents}
528
+
529
+ release_pipeline :
530
+ - *switch_context
524
531
- command : shell.exec
525
- display_name : Pull Kondukto API token from AWS Secrets Manager and write it to file
532
+ type : setup
526
533
params :
527
- silent : true
528
534
shell : bash
529
- include_expansions_in_env : [AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN]
530
535
script : |
531
- set -e
532
- # use AWS CLI to get the Kondukto API token from AWS Secrets Manager
533
- kondukto_token=$(aws secretsmanager get-secret-value --secret-id "kondukto-token" --region "us-east-1" --query 'SecretString' --output text)
534
- # write the KONDUKTO_TOKEN environment variable to Silkbomb environment file
535
- echo "KONDUKTO_TOKEN=$kondukto_token" > ${workdir}/silkbomb.env
536
+ # Docker Hub workaround
537
+ # docker buildx needs the moby/buildkit image when setting up a builder so we pull it from our mirror
538
+ 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
539
+ docker buildx inspect --bootstrap
536
540
- command : subprocess.exec
537
541
retry_on_failure : true
538
542
type : setup
539
543
params :
540
544
shell : bash
541
545
<< : *e2e_include_expansions_in_env
542
546
working_dir : src/github.com/mongodb/mongodb-kubernetes
543
- binary : scripts/dev/run_python.sh scripts/release/pipeline_main.py --parallel ${image_name} ${all_agents}
547
+ env :
548
+ git_tag : ${triggered_by_git_tag}
549
+ binary : scripts/dev/run_python.sh scripts/release/pipeline_main.py ${image_name} --build-scenario release --version ${git_tag}
544
550
545
551
# TODO: CLOUDP-335471 ; once all image builds are made with the new atomic pipeline, remove the following function
546
552
legacy_pipeline :
0 commit comments