-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
CircleCI
committed
Mar 10, 2022
1 parent
8343aea
commit 76f4826
Showing
3 changed files
with
33 additions
and
202 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 |
---|---|---|
@@ -1,26 +1,11 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
setup_git() { | ||
git config --global user.email "no-reply@build.com" | ||
git config --global user.name "CircleCI" | ||
git checkout master | ||
} | ||
|
||
echo "Install a project with a clean state" | ||
npm ci | ||
|
||
echo "Build tracer" | ||
npm run build | ||
cp package.json lib | ||
setup_git | ||
|
||
echo "Setting production ad NODE_ENV" | ||
export NODE_ENV=production | ||
|
||
echo "Push to NPM" | ||
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc | ||
npm run semantic-release | ||
|
||
echo \{\"type\":\"Release\",\"repo\":\"${CIRCLE_PROJECT_REPONAME}\",\"buildUrl\":\"${CIRCLE_BUILD_URL}\"\} | curl -X POST "https://listener.logz.io:8071?token=${LOGZ}" -v --data-binary @- | ||
git push origin master | ||
echo "Creating new credential files" | ||
enc_location=../common-resources/encrypted_files/credentials_production.enc | ||
if [[ ! -f ${enc_location} ]] | ||
then | ||
echo "$enc_location not found" | ||
exit 1 | ||
fi | ||
|
||
mkdir -p ~/.aws | ||
echo "${KEY}" | gpg --batch -d --passphrase-fd 0 ${enc_location} > ~/.aws/credentials | ||
./scripts/deploy.sh --env prod |
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,8 @@ | ||
#!/usr/bin/env bash | ||
set -eo pipefail | ||
|
||
pushd "$(dirname "$0")" &> /dev/null | ||
# Go back one spot because we are on scripts dir. The other scripts assume you are in the root folder | ||
cd .. | ||
../utils/common_bash/defaults/remove.sh "lumigo-tracer-extension" $* | ||
popd &> /dev/null |