Skip to content

Commit

Permalink
authenticate docker host
Browse files Browse the repository at this point in the history
  • Loading branch information
chingor13 committed Oct 25, 2024
1 parent 798b89e commit 31b9329
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .trampolinerc
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,11 @@ if [[ -z "${TRAMPOLINE_BUILD_FILE:-}" ]]; then
fi

# Secret Manager secrets.
TRAMPOLINE_HOST=$(echo "${TRAMPOLINE_IMAGE}" | cut -d/ -f1)
if [[ ! "${TRAMPOLINE_HOST}" =~ "gcr.io" ]]
then
echo "TRAMPOLINE_HOST: ${TRAMPOLINE_HOST}"
gcloud components install auth
gcloud auth configure-docker "${TRAMPOLINE_HOST}"
fi
source ${PROJECT_ROOT}/.kokoro/populate-secrets.sh

0 comments on commit 31b9329

Please sign in to comment.