Skip to content

Commit

Permalink
Merge pull request eksctl-io#680 from wongma7/fixecrlogin
Browse files Browse the repository at this point in the history
Fix outdated ecr login command
  • Loading branch information
k8s-ci-robot authored Jan 6, 2021
2 parents ddaa68b + ae26e4d commit b5c0756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/run-e2e-test
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ if docker images | grep "${IMAGE_NAME}" | grep "${IMAGE_TAG}"; then
else
set -e
loudecho "Building and pushing test driver image to ${IMAGE_NAME}:${IMAGE_TAG}"
eval "$(aws ecr get-login --region "${REGION}" --no-include-email)"
aws ecr get-login-password --region "${REGION}" | docker login --username AWS --password-stdin "${AWS_ACCOUNT_ID}".dkr.ecr."${REGION}".amazonaws.com
docker build -t "${IMAGE_NAME}":"${IMAGE_TAG}" .
docker push "${IMAGE_NAME}":"${IMAGE_TAG}"
fi
Expand Down

0 comments on commit b5c0756

Please sign in to comment.