Skip to content

Commit c3dd864

Browse files
committed
add release for agent
1 parent 3ad71b7 commit c3dd864

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

.evergreen-functions.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -517,30 +517,36 @@ functions:
517517
# docker buildx needs the moby/buildkit image when setting up a builder so we pull it from our mirror
518518
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
519519
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
522523
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
524531
- command: shell.exec
525-
display_name: Pull Kondukto API token from AWS Secrets Manager and write it to file
532+
type: setup
526533
params:
527-
silent: true
528534
shell: bash
529-
include_expansions_in_env: [AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN]
530535
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
536540
- command: subprocess.exec
537541
retry_on_failure: true
538542
type: setup
539543
params:
540544
shell: bash
541545
<<: *e2e_include_expansions_in_env
542546
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}
544550

545551
# TODO: CLOUDP-335471 ; once all image builds are made with the new atomic pipeline, remove the following function
546552
legacy_pipeline:

.evergreen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ tasks:
356356
- func: setup_building_host
357357
- func: quay_login
358358
- func: setup_docker_sbom
359-
- func: pipeline
359+
- func: release_pipeline
360360
vars:
361361
image_name: agent
362362

0 commit comments

Comments
 (0)