Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fx #616

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

fx #616

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ functions:
extract_to: src/github.com/mongodb/mongo-tools/
bucket: mciuploads

"sign msi installer":
"sign msi installer and zip file for windows":
- command: shell.exec
type: system
params:
Expand All @@ -289,9 +289,10 @@ functions:
params:
working_dir: src/github.com/mongodb/mongo-tools/
script: |
if [ "${mongo_os}" = "osx" ]; then
if [ "${mongo_os}" -ne "windows-64" ]; then
exit 0
fi

/usr/local/bin/notary-client.py \
--key-name "server-Tools" \
--auth-token-file ./signing_auth_token \
Expand All @@ -302,6 +303,16 @@ functions:
--package-file-suffix "" \
release.msi

/usr/local/bin/notary-client.py \
--key-name "server-Tools" \
--auth-token-file ./signing_auth_token \
--comment "Evergreen Automatic Signing (mongo-tools)" \
--notary-url http://notary-service.build.10gen.cc:5000 \
--skip-missing \
--outputs "sig" \
--package-file-suffix "" \
release.zip

"sign macos zip":
command: subprocess.exec
params:
Expand Down Expand Up @@ -360,6 +371,12 @@ functions:
if [ "${mongo_os}" = "osx" ]; then
exit 0
fi

# Windows .zip files are signed separately.
if [ "${mongo_os}" = "windows-64" ]; then
exit 0
fi

/usr/local/bin/notary-client.py \
--key-name "server-Tools" \
--auth-token-file ./signing_auth_token \
Expand Down Expand Up @@ -725,7 +742,7 @@ tasks:
commands:
- func: "fetch source"
- func: "fetch dist release artifacts"
- func: "sign msi installer"
- func: "sign msi installer and zip file for windows"
- func: "sign macos zip"
- func: "sign linux packages"
- func: "sign archives"
Expand Down