Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Export environment variables to fix staging build
  • Loading branch information
RishabhJain2018 committed Mar 30, 2025
commit 2242355d4def5e24ab7ea85070f908a0ecb7bd5b
3 changes: 3 additions & 0 deletions scripts/deployment/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
set -e

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

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