diff --git a/.circleci/config.yml b/.circleci/config.yml index 9ff13529823..b0cf4766a6a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -85,6 +85,7 @@ jobs: # ability to query ECR images ecr_login set +eu + set -x # convert to json, run a python script, write out json (which is a readable as YAML) pip install PyYAML build-system/scripts/generate_circleci_config.py diff --git a/build-system/scripts/ecr_login b/build-system/scripts/ecr_login index 5d9e6671e59..65180dc1ad6 100755 --- a/build-system/scripts/ecr_login +++ b/build-system/scripts/ecr_login @@ -1,5 +1,6 @@ #!/usr/bin/env bash set -euo pipefail REGION=${1:-$ECR_REGION} +aws ecr get-login-password --region $REGION aws ecr get-login-password --region $REGION \ | docker login --username AWS --password-stdin $AWS_ACCOUNT.dkr.ecr.$REGION.amazonaws.com 2> /dev/null \ No newline at end of file