Skip to content

Commit

Permalink
Update ECR login for CI post build
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Feb 6, 2024
1 parent 5a48c03 commit 68f03a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/utility/post_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ push_to_ecr() {
label=$(docker inspect --format '{{ index .Config.Labels "org.prx.spire.publish.ecr"}}' "$image_id")

echo "> Logging into ECR"
$(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION)
aws ecr get-login-password --region "${AWS_DEFAULT_REGION}" | docker login --username AWS --password-stdin "${PRX_AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com"
echo "> Logged in to ECR"

unsafe_ecr_repo_name="GitHub/${PRX_REPO}"
Expand Down

0 comments on commit 68f03a8

Please sign in to comment.