Skip to content

Commit ca97e2c

Browse files
authored
Merge pull request #302 from Jefftree/patch-5
Update cloudbuild.yaml add auth step
2 parents a8c54ab + 0a47abf commit ca97e2c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

cloudbuild.yaml

+6-3
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@ options:
33
substitution_option: ALLOW_LOOSE
44
steps:
55
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90'
6-
entrypoint: make
6+
entrypoint: bash
77
env:
88
- TAG=$_GIT_TAG
99
- BASE_REF=$_PULL_BASE_REF
1010
- DOCKER_CLI_EXPERIMENTAL=enabled
11-
args:
12-
- release-staging
1311
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
1412
# set the home to /root explicitly to if using docker buildx
1513
- HOME=/root
14+
args:
15+
- '-c'
16+
- |
17+
gcloud auth configure-docker \
18+
&& make release-staging
1619
substitutions:
1720
# _GIT_TAG will be filled with a git-based tag for the image, of the form vYYYYMMDD-hash, and
1821
# can be used as a substitution

0 commit comments

Comments
 (0)