Skip to content

Commit aa676cc

Browse files
author
Yu Hu
committed
creds
1 parent aa1f816 commit aa676cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

startupscript/butane/gcp/docker-auth.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ echo "Logging into artifact registries..." >&2
6767
echo "$LOCATIONS" | while read -r location; do
6868
[ -z "$location" ] && continue
6969
echo " Logging into: ${location}-docker.pkg.dev" >&2
70-
docker login -u oauth2accesstoken -p "${ACCESS}" "https://${location}-docker.pkg.dev" > /dev/null 2>&1
70+
echo "${ACCESS}" | docker login -u oauth2accesstoken --password-stdin "https://${location}-docker.pkg.dev"
7171
done
7272

7373
# Re-enable xtrace

0 commit comments

Comments
 (0)