Skip to content

Commit 30929d2

Browse files
TravisCI: Export environment variables in push.sh to fix staging build (Cloud-CV#4535)
1 parent 35c2a31 commit 30929d2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/deployment/push.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
set -e
33

44
export COMMIT_ID=$(git rev-parse HEAD)
5+
export TRAVIS_BRANCH=$(git rev-parse --abbrev-ref HEAD)
6+
export AWS_ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)
57

68
build_and_push() {
79
aws configure set default.region us-east-1
810
eval $(aws ecr get-login --no-include-email)
911
echo "Pulling ssl certificates and nginx configuration..."
12+
# Pull ssl files related to eval.ai
1013
aws s3 cp s3://cloudcv-secrets/eval.ai/ssl/ ./ssl/ --recursive
1114
# Need ssl files related to *.cloudcv.org since we want to provide backward compatibility
1215
aws s3 cp s3://cloudcv-secrets/evalai/${TRAVIS_BRANCH}/ssl/ ./ssl/ --recursive

0 commit comments

Comments
 (0)