File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,11 @@ before_deploy:
2525 - aws --version
2626 # Parse branch name and determine an environment to deploy
2727 - export ENV=$(echo "${TRAVIS_BRANCH}" | perl -ne "print $& if /(?<=deploy\/).*/")
28- # account number to mask
29- - account_number=$(aws sts get-caller-identity --output text --query 'Account')
3028 # prune to reduce package size
3129 - npm prune --production
3230deploy :
3331 - provider : script
34- script : ./scripts/deploy.sh ${ENV} | sed -e "s/${account_number}/SECRET/g"
32+ script : ./scripts/deploy.sh ${ENV}
3533 skip_cleanup : true
3634 on :
3735 branch : deploy/*
Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ if [ "${ENV}" = "prod" ]; then
1111 source scripts/switch-production-role.sh
1212fi
1313
14- sls deploy -v --stage ${ENV}
14+ # account number to mask
15+ account_number=$( aws sts get-caller-identity --output text --query ' Account' )
16+
17+ sls deploy -v --stage ${ENV} | sed -e " s/${account_number} /SECRET/g"
1518
1619if [ " ${ENV} " = " prod" ]; then
1720 # reset current role if exists
You can’t perform that action at this time.
0 commit comments