File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ script:
2121before_deploy :
2222 # Parse branch name and determine an environment to deploy
2323 - export ENV=$(echo "${TRAVIS_BRANCH}" | perl -ne "print $& if /(?<=deploy\/).*/")
24+ # account number to mask
25+ - account_number=$(aws sts get-caller-identity --output text --query 'Account')
2426 # install aws cli
2527 - sudo apt-get -y install python-pip
2628 - sudo pip install awscli
2729 - aws --version
28- # account number
29- - account_number=$(aws sts get-caller-identity --output text --query 'Account')
3030deploy :
3131 - provider : script
32- script : ./scripts/deploy.sh | sed -e "s/${account_number}/SECRET/g"
32+ script : ./scripts/deploy.sh ${ENV} | sed -e "s/${account_number}/SECRET/g"
3333 skip_cleanup : true
3434 on :
3535 branch : deploy/*
You can’t perform that action at this time.
0 commit comments