File tree 2 files changed +4
-11
lines changed
2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,11 @@ before_deploy:
25
25
- aws --version
26
26
# Parse branch name and determine an environment to deploy
27
27
- 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')
30
28
# prune to reduce package size
31
29
- npm prune --production
32
30
deploy :
33
31
- provider : script
34
- script : ./scripts/deploy.sh ${ENV} | sed -e "s/${account_number}/SECRET/g"
32
+ script : ./scripts/deploy.sh ${ENV}
35
33
skip_cleanup : true
36
34
on :
37
35
branch : deploy/*
Original file line number Diff line number Diff line change 5
5
ENV=$1
6
6
7
7
if [ " ${ENV} " = " prod" ]; then
8
- # reset current role if exists
9
- test ! -v AWS_SESSION_TOKEN && direnv reload
10
- # switch to production role
11
8
source scripts/switch-production-role.sh
12
9
fi
13
10
14
- sls deploy -v --stage ${ENV}
11
+ # account number to mask
12
+ account_number=$( aws sts get-caller-identity --output text --query ' Account' )
15
13
16
- if [ " ${ENV} " = " prod" ]; then
17
- # reset current role if exists
18
- test ! -v AWS_SESSION_TOKEN && direnv reload
19
- fi
14
+ sls deploy -v --stage ${ENV} | sed -e " s/${account_number} /SECRET/g"
You can’t perform that action at this time.
0 commit comments