Skip to content

Commit

Permalink
ci: Use aws ecr get-login-password instead of get-login
Browse files Browse the repository at this point in the history
get-login doesn't work any longer.
  • Loading branch information
Robin Sonefors committed Mar 16, 2022
1 parent 5581d75 commit b08165b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
echo Last successful build was commit $LAST_BUILD_COMMIT
mkdir ~/.aws
echo $AWS_ECR_CREDENTIALS | base64 -d > ~/.aws/credentials
$(aws ecr get-login --no-include-email --region us-east-1)
aws ecr get-login-password --region us-east-1 | docker login -u AWS --password-stdin 664268111851.dkr.ecr.us-east-1.amazonaws.com
IMAGE_REPOSITORY=664268111851.dkr.ecr.us-east-1.amazonaws.com ./push-images --if-changed-since $LAST_BUILD_COMMIT
dry-run-upload:
Expand All @@ -132,7 +132,7 @@ jobs:
echo Last successful build was commit $LAST_BUILD_COMMIT
mkdir ~/.aws
echo $AWS_ECR_CREDENTIALS | base64 -d > ~/.aws/credentials
$(aws ecr get-login --no-include-email --region us-east-1)
aws ecr get-login-password --region us-east-1 | docker login -u AWS --password-stdin 664268111851.dkr.ecr.us-east-1.amazonaws.com
IMAGE_REPOSITORY=664268111851.dkr.ecr.us-east-1.amazonaws.com ./push-images --dry-run --if-changed-since $LAST_BUILD_COMMIT
workflows:
Expand Down

0 comments on commit b08165b

Please sign in to comment.