File tree Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,6 @@ CRATE_VERSION: "${CRATE_VERSION}"
2525PAPERTRAIL_KEY_ID: "${PAPERTRAIL_KEY_ID} "
2626PAPERTRAIL_SECRET_KEY: "${PAPERTRAIL_SECRET_KEY} "
2727PAPERTRAIL_PRODUCT: "${PAPERTRAIL_PRODUCT} "
28- ARTIFACTORY_USERNAME: "${ARTIFACTORY_USERNAME} "
29- ARTIFACTORY_PASSWORD: "${ARTIFACTORY_PASSWORD} "
3028GARASIGN_USERNAME: "${GARASIGN_USERNAME} "
3129GARASIGN_PASSWORD: "${GARASIGN_PASSWORD} "
3230S3_UPLOAD_AWS_KEY: "${S3_UPLOAD_AWS_KEY} "
Original file line number Diff line number Diff line change 33set -o errexit
44set +x
55
6- echo " ${ARTIFACTORY_PASSWORD} " | docker login --password-stdin --username ${ARTIFACTORY_USERNAME} artifactory.corp.mongodb .com
6+ aws ecr get-login-password --region us-east-1 | docker login --username AWS -- password-stdin 901841024863.dkr.ecr.us-east-1.amazonaws .com
77
88echo " GRS_CONFIG_USER1_USERNAME=${GARASIGN_USERNAME} " >> " signing-envfile"
99echo " GRS_CONFIG_USER1_PASSWORD=${GARASIGN_PASSWORD} " >> " signing-envfile"
@@ -13,13 +13,13 @@ docker run \
1313 --rm \
1414 -v $( pwd) :$( pwd) \
1515 -w $( pwd) \
16- artifactory.corp.mongodb. com/release-tools-container-registry-local /garasign-gpg \
16+ 901841024863.dkr.ecr.us-east-1.amazonaws. com/release-infrastructure /garasign-gpg \
1717 /bin/bash -c " gpgloader && gpg --yes -v --armor -o mongodb-${CRATE_VERSION} .sig --detach-sign target/package/mongodb-${CRATE_VERSION} .crate"
1818
1919docker run \
2020 --env-file=signing-envfile \
2121 --rm \
2222 -v $( pwd) :$( pwd) \
2323 -w $( pwd) \
24- artifactory.corp.mongodb. com/release-tools-container-registry-local /garasign-gpg \
24+ 901841024863.dkr.ecr.us-east-1.amazonaws. com/release-infrastructure /garasign-gpg \
2525 /bin/bash -c " gpgloader && gpg --yes -v --armor -o mongodb-internal-macros-${CRATE_VERSION} .sig --detach-sign macros/target/package/mongodb-internal-macros-${CRATE_VERSION} .crate"
Original file line number Diff line number Diff line change 1212# --param triggered_by_git_tag=${TAG} \
1313# --param DRY_RUN=yes
1414#
15- # If the changes need to be developed against the main branch, more steps are needed:
16- #
17- # 1. Add dummy version numbers to the Cargo.toml lines for mongodb-internal-macros, bson,
18- # and libmongocrypt
19- # 2. Comment out the "fetch tag" func call from the "publish-release" task in this file
20- # 3. Execute:
15+ # If the changes need to be developed against the main branch, the "fetch tag" func call
16+ # in the "publish-release" task needs to be commented out before running:
2117#
2218# evergreen patch --path .evergreen/releases.yml \
2319# -t publish-release -v all \
2420# -p mongo-rust-driver \
2521# -u --browse \
26- # --param triggered_by_git_tag=${TAG} \
2722# --param DRY_RUN=yes \
2823# --param PACKAGE_ONLY=yes
2924#
30- # Make sure to remove the changes from 1 and 2 before merging!
25+ # Make sure to uncomment the call before merging!
3126
3227exec_timeout_secs : 3600
3328
@@ -144,12 +139,16 @@ functions:
144139 - src/macros/target/package/mongodb-internal-macros-${CRATE_VERSION}.crate
145140
146141 " sign release " :
142+ - command : ec2.assume_role
143+ params :
144+ role_arn : " arn:aws:iam::901841024863:role/ecr-role-evergreen-ro"
147145 - command : subprocess.exec
148146 params :
149147 working_dir : " src"
150148 include_expansions_in_env :
151- - ARTIFACTORY_USERNAME
152- - ARTIFACTORY_PASSWORD
149+ - AWS_ACCESS_KEY_ID
150+ - AWS_SECRET_ACCESS_KEY
151+ - AWS_SESSION_TOKEN
153152 - GARASIGN_USERNAME
154153 - GARASIGN_PASSWORD
155154 - CRATE_VERSION
You can’t perform that action at this time.
0 commit comments