File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,10 @@ CRATE_VERSION=$(cargo metadata --format-version=1 --no-deps | jq --raw-output '.
13
13
rm secrets-export.sh
14
14
15
15
PAPERTRAIL_PRODUCT=" rust-driver"
16
+ TEST_PREFIX=" "
16
17
if [[ " ${DRY_RUN:- } " == " yes" ]]; then
17
18
PAPERTRAIL_PRODUCT=" rust-driver-testing"
19
+ TEST_PREFIX=" testing-"
18
20
fi
19
21
20
22
cat << EOT >release-expansion.yml
@@ -27,4 +29,7 @@ ARTIFACTORY_USERNAME: "${ARTIFACTORY_USERNAME}"
27
29
ARTIFACTORY_PASSWORD: "${ARTIFACTORY_PASSWORD} "
28
30
GARASIGN_USERNAME: "${GARASIGN_USERNAME} "
29
31
GARASIGN_PASSWORD: "${GARASIGN_PASSWORD} "
32
+ S3_UPLOAD_AWS_KEY: "${S3_UPLOAD_AWS_KEY} "
33
+ S3_UPLOAD_AWS_SECRET: "${S3_UPLOAD_AWS_SECRET} "
34
+ TEST_PREFIX: "${TEST_PREFIX} "
30
35
EOT
Original file line number Diff line number Diff line change @@ -158,8 +158,23 @@ functions:
158
158
args :
159
159
- .evergreen/release-sign.sh
160
160
161
+ # Note for debugging: the links generated by Evergreen for these files will
162
+ # return a "permission denied" error; this is expected and a consequence of
163
+ # s3 configuration. The files can be viewed/downloaded by replacing the host
164
+ # portion of the URL with `downloads.mongodb.org`.
161
165
" save signature " :
162
- command : s3.push
166
+ - command : s3.put
167
+ params :
168
+ aws_key : ${S3_UPLOAD_AWS_KEY}
169
+ aws_secret : ${S3_UPLOAD_AWS_SECRET}
170
+ local_files_include_filter :
171
+ - src/mongodb-${CRATE_VERSION}.sig
172
+ - src/mongodb-internal-macros-${CRATE_VERSION}.sig
173
+ remote_file : rust-driver/${TEST_PREFIX}
174
+ bucket : cdn-origin-rust-driver
175
+ permissions : private
176
+ content_type : text/plain
177
+ display_name : signature-
163
178
164
179
tasks :
165
180
- name : " publish-release"
You can’t perform that action at this time.
0 commit comments