Skip to content

Commit a787b79

Browse files
committed
fix travis
1 parent 9ee25c7 commit a787b79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ script:
2121
before_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')
3030
deploy:
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/*

0 commit comments

Comments
 (0)