Skip to content

Commit

Permalink
Fix outdated ecr login command
Browse files Browse the repository at this point in the history
  • Loading branch information
wongma7 committed Jan 6, 2021
1 parent ddaa68b commit ae26e4d
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 ae26e4d

Please sign in to comment.