Skip to content

Commit

Permalink
Fix gcloud auth required for image push (#1230)
Browse files Browse the repository at this point in the history
Signed-off-by: Prajyot-Parab <[email protected]>
  • Loading branch information
Prajyot-Parab authored May 16, 2023
1 parent fc8fa51 commit 43540a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@ options:
substitution_option: ALLOW_LOOSE
steps:
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20230424-910a2a439d'
entrypoint: make
entrypoint: bash
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
- TAG=$_GIT_TAG
- PULL_BASE_REF=$_PULL_BASE_REF
- DOCKER_BUILDKIT=1
- HOME=/root
args:
- release-staging
- -c
- |
gcloud auth configure-docker \
&& make release-staging
substitutions:
# _GIT_TAG will be filled with a git-based tag for the image, of the form vYYYYMMDD-hash, and
# can be used as a substitution
Expand Down
2 changes: 1 addition & 1 deletion hack/init-buildx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ if [ "$(uname)" == 'Linux' ]; then
fi

# Ensure we use a builder that can leverage it (the default on linux will not)
docker buildx rm capibm || true
docker buildx rm capibm >/dev/null 2>&1 || true
docker buildx create --use --name=capibm

0 comments on commit 43540a5

Please sign in to comment.