We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ee25c7 commit a787b79Copy full SHA for a787b79
1 file changed
.travis.yml
@@ -21,15 +21,15 @@ script:
21
before_deploy:
22
# Parse branch name and determine an environment to deploy
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')
26
# install aws cli
27
- sudo apt-get -y install python-pip
28
- sudo pip install awscli
29
- aws --version
- # account number
- - account_number=$(aws sts get-caller-identity --output text --query 'Account')
30
deploy:
31
- provider: script
32
- script: ./scripts/deploy.sh | sed -e "s/${account_number}/SECRET/g"
+ script: ./scripts/deploy.sh ${ENV} | sed -e "s/${account_number}/SECRET/g"
33
skip_cleanup: true
34
on:
35
branch: deploy/*
0 commit comments