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}"
25
25
PAPERTRAIL_KEY_ID: "${PAPERTRAIL_KEY_ID} "
26
26
PAPERTRAIL_SECRET_KEY: "${PAPERTRAIL_SECRET_KEY} "
27
27
PAPERTRAIL_PRODUCT: "${PAPERTRAIL_PRODUCT} "
28
- ARTIFACTORY_USERNAME: "${ARTIFACTORY_USERNAME} "
29
- ARTIFACTORY_PASSWORD: "${ARTIFACTORY_PASSWORD} "
30
28
GARASIGN_USERNAME: "${GARASIGN_USERNAME} "
31
29
GARASIGN_PASSWORD: "${GARASIGN_PASSWORD} "
32
30
S3_UPLOAD_AWS_KEY: "${S3_UPLOAD_AWS_KEY} "
Original file line number Diff line number Diff line change 3
3
set -o errexit
4
4
set +x
5
5
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
7
7
8
8
echo " GRS_CONFIG_USER1_USERNAME=${GARASIGN_USERNAME} " >> " signing-envfile"
9
9
echo " GRS_CONFIG_USER1_PASSWORD=${GARASIGN_PASSWORD} " >> " signing-envfile"
@@ -13,13 +13,13 @@ docker run \
13
13
--rm \
14
14
-v $( pwd) :$( pwd) \
15
15
-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 \
17
17
/bin/bash -c " gpgloader && gpg --yes -v --armor -o mongodb-${CRATE_VERSION} .sig --detach-sign target/package/mongodb-${CRATE_VERSION} .crate"
18
18
19
19
docker run \
20
20
--env-file=signing-envfile \
21
21
--rm \
22
22
-v $( pwd) :$( pwd) \
23
23
-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 \
25
25
/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 12
12
# --param triggered_by_git_tag=${TAG} \
13
13
# --param DRY_RUN=yes
14
14
#
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:
21
17
#
22
18
# evergreen patch --path .evergreen/releases.yml \
23
19
# -t publish-release -v all \
24
20
# -p mongo-rust-driver \
25
21
# -u --browse \
26
- # --param triggered_by_git_tag=${TAG} \
27
22
# --param DRY_RUN=yes \
28
23
# --param PACKAGE_ONLY=yes
29
24
#
30
- # Make sure to remove the changes from 1 and 2 before merging!
25
+ # Make sure to uncomment the call before merging!
31
26
32
27
exec_timeout_secs : 3600
33
28
@@ -144,12 +139,16 @@ functions:
144
139
- src/macros/target/package/mongodb-internal-macros-${CRATE_VERSION}.crate
145
140
146
141
" sign release " :
142
+ - command : ec2.assume_role
143
+ params :
144
+ role_arn : " arn:aws:iam::901841024863:role/ecr-role-evergreen-ro"
147
145
- command : subprocess.exec
148
146
params :
149
147
working_dir : " src"
150
148
include_expansions_in_env :
151
- - ARTIFACTORY_USERNAME
152
- - ARTIFACTORY_PASSWORD
149
+ - AWS_ACCESS_KEY_ID
150
+ - AWS_SECRET_ACCESS_KEY
151
+ - AWS_SESSION_TOKEN
153
152
- GARASIGN_USERNAME
154
153
- GARASIGN_PASSWORD
155
154
- CRATE_VERSION
You can’t perform that action at this time.
0 commit comments