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:
21
21
before_deploy :
22
22
# Parse branch name and determine an environment to deploy
23
23
- 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')
24
26
# install aws cli
25
27
- sudo apt-get -y install python-pip
26
28
- sudo pip install awscli
27
29
- aws --version
28
- # account number
29
- - account_number=$(aws sts get-caller-identity --output text --query 'Account')
30
30
deploy :
31
31
- 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"
33
33
skip_cleanup : true
34
34
on :
35
35
branch : deploy/*
You can’t perform that action at this time.
0 commit comments