summaryrefslogtreecommitdiff
path: root/evergreen/notary_client_run.sh
diff options
context:
space:
mode:
authorDaniel Moody <daniel.moody@mongodb.com>2022-04-18 21:14:29 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-21 20:41:25 +0000
commitba20d2b03cc2fcb694a103251e725c73bdf333b6 (patch)
treea049d370d53a69ef64bb30a5c23301e9f17058c2 /evergreen/notary_client_run.sh
parent3baf83d4d0d428e99325d40be4e42e1ad750db31 (diff)
downloadmongo-ba20d2b03cc2fcb694a103251e725c73bdf333b6.tar.gz
SERVER-64332 added macos binary signing to push task
(cherry picked from commit 8aee4d35ca04dce4d045dc366fc47bfd0d4c4a5e)
Diffstat (limited to 'evergreen/notary_client_run.sh')
-rw-r--r--evergreen/notary_client_run.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/evergreen/notary_client_run.sh b/evergreen/notary_client_run.sh
index 6e349d1608e..88d2eef53d5 100644
--- a/evergreen/notary_client_run.sh
+++ b/evergreen/notary_client_run.sh
@@ -13,6 +13,19 @@ if [ "$long_ext" == "tgz" ]; then
long_ext="tar.gz"
fi
+if [[ "${push_name}" == "macos"* ]]; then
+ curl https://macos-notary-1628249594.s3.amazonaws.com/releases/client/v3.3.0/linux_amd64.zip -o linux_amd64.zip
+ unzip linux_amd64.zip
+ chmod +x ./linux_amd64/macnotary
+ bins=("mongo-binaries.tgz" "mongo-shell.tgz" "mongo-cryptd.tgz" "mh.tgz")
+ for archive in ${bins[@]}; do
+ TEMP_ARCHIVE="$(mktemp -p $PWD)"
+ mv "$archive" "$TEMP_ARCHIVE"
+ ./linux_amd64/macnotary -f "$TEMP_ARCHIVE" -m notarizeAndSign -u https://dev.macos-notary.build.10gen.cc/api -k server -s ${MACOS_NOTARY_TOKEN} -b server.mongodb.com -o "$archive"
+ rm -f "$TEMP_ARCHIVE"
+ done
+fi
+
mv mongo-binaries.tgz mongodb-${push_name}-${push_arch}-${suffix}.${ext}
mv mongo-shell.tgz mongodb-shell-${push_name}-${push_arch}-${suffix}.${ext}
mv mongo-cryptd.tgz mongodb-cryptd-${push_name}-${push_arch}-${suffix}.${ext} || true