Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mise.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion shell/lib/docker/authn/aws-ecr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ ecr_auth() {
region="$(echo "$registry" | cut -d. -f4)"
info_sub "Authenticating with AWS ECR in $registry"
# See: https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry_auth.html#registry-auth-token
aws ecr get-login-password --region "$region" | docker login --username AWS --password-stdin "$registry"
# Capture the password first to avoid pipe stdin issues in non-TTY CI environments.
ecr_password="$(aws ecr get-login-password --region "$region")"
docker login --username AWS --password-stdin "$registry" <<<"$ecr_password"
}

# ensure_ecr_repository ensures that an ECR repository exists.
Expand Down