-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): modify shell.exec as per evergreen instructions to avoid lea…
…king any secrets MONGOSH-1704 (#1817) * fix: modify shell.exec as per evergreen instructions to avoid leaking any secrets * fix: fix for incorrect file permissions * Update .evergreen/run-evergreen-release.sh Co-authored-by: Anna Henningsen <[email protected]> --------- Co-authored-by: Anna Henningsen <[email protected]>
- Loading branch information
1 parent
48fbb7f
commit cbaeef2
Showing
5 changed files
with
71 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#! /usr/bin/env bash | ||
set -e | ||
set +x | ||
cat <<PRELOAD_SCRIPT > preload.sh | ||
echo "Preload script starting" | ||
set -e | ||
set -x | ||
export ARTIFACT_URL=$(cat ../artifact-url.txt) | ||
export IS_CI=1 | ||
set +x | ||
export MONGOSH_SMOKE_TEST_SERVER="mongodb+srv://${connectivity_test_atlas_username}:${connectivity_test_atlas_password}@${connectivity_test_atlas_hostname}/" | ||
echo "Preload script done" | ||
set -x | ||
PRELOAD_SCRIPT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#! /usr/bin/env bash | ||
set -e | ||
|
||
echo "//registry.npmjs.org/:_authToken=${devtoolsbot_npm_token}" > .npmrc | ||
set -x | ||
export NODE_JS_VERSION=${node_js_version} | ||
source .evergreen/setup-env.sh | ||
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true" | ||
npm run evergreen-release publish $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#! /usr/bin/env bash | ||
|
||
set -e | ||
set +x | ||
echo "${__project_aws_ssh_key_value}" > ~/.ssh/mcipacker.pem | ||
chmod 0600 ~/.ssh/mcipacker.pem |