Skip to content

Commit ec1efbf

Browse files
committed
Moving certificate name as env param
1 parent 0fcd04b commit ec1efbf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build/ci/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ tasks:
291291
ARTIFACTORY_PASSWORD: ${artifactory_password}
292292
GRS_USERNAME: ${garasign_username}
293293
GRS_PASSWORD: ${garasign_password}
294+
AUTHENTICODE_KEY_NAME: ${authenticode_key_name}
294295
working_dir: src/github.com/mongodb/mongodb-cli
295296
binary: build/package/windows_notarize.sh
296297
- func: "package"

build/package/windows_notarize.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if [[ -f "$EXE_FILE" && -f "$MSI_FILE" ]]; then
3838
-v "$(pwd):$(pwd)" \
3939
-w "$(pwd)" \
4040
artifactory.corp.mongodb.com/release-tools-container-registry-local/garasign-jsign \
41-
/bin/bash -c "jsign --tsaurl http://timestamp.digicert.com -a mongo-authenticode-2021 \"$EXE_FILE\""
41+
/bin/bash -c "jsign --tsaurl http://timestamp.digicert.com -a ${AUTHENTICODE_KEY_NAME} \"$EXE_FILE\""
4242

4343
echo "signing $MSI_FILE"
4444
podman run \
@@ -47,7 +47,7 @@ if [[ -f "$EXE_FILE" && -f "$MSI_FILE" ]]; then
4747
-v "$(pwd):$(pwd)" \
4848
-w "$(pwd)" \
4949
artifactory.corp.mongodb.com/release-tools-container-registry-local/garasign-jsign \
50-
/bin/bash -c "jsign --tsaurl http://timestamp.digicert.com -a mongo-authenticode-2021 \"$MSI_FILE\""
50+
/bin/bash -c "jsign --tsaurl http://timestamp.digicert.com -a ${AUTHENTICODE_KEY_NAME} \"$MSI_FILE\""
5151

5252
rm .env
5353
fi

0 commit comments

Comments
 (0)