Skip to content

Commit

Permalink
add better comment for docker auth logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ldetmer committed Nov 1, 2024
1 parent 514b9c4 commit a2bd88a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .kokoro/trampoline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ trap cleanup EXIT
$(dirname $0)/populate-secrets.sh # Secret Manager secrets.
TRAMPOLINE_HOST=$(echo "${TRAMPOLINE_IMAGE}" | cut -d/ -f1)
if [[ ! "${TRAMPOLINE_HOST}" =~ "gcr.io" ]]; then
# If you need to specify a host other than gcr.io, you have to run on an update version of gcloud.
# You have to run on an update version of gcloud, in order to pass in the host name
# in configure-docker command. This is not necessary for gcr.io because that is a default
# repository name and is not required to specify the repo when running configure-docker.
echo "TRAMPOLINE_HOST: ${TRAMPOLINE_HOST}"
gcloud components update
gcloud auth configure-docker "${TRAMPOLINE_HOST}"
Expand Down

0 comments on commit a2bd88a

Please sign in to comment.