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 767e2bd
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 update
gcloud auth configure-docker "${TRAMPOLINE_HOST}"
fi
source ${PROJECT_ROOT}/.kokoro/populate-secrets.sh

0 comments on commit 767e2bd

Please sign in to comment.