Skip to content

Commit bf18e3e

Browse files
authored
Switch cloudbuild image to gcr.io/cloud-builders/docker (#2154)
1 parent 9b6c844 commit bf18e3e

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

cloudbuild.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,19 @@ options:
99
substitution_option: ALLOW_LOOSE
1010
machineType: 'N1_HIGHCPU_8'
1111
steps:
12-
- name: gcr.io/k8s-testimages/gcb-docker-gcloud
12+
- name: gcr.io/cloud-builders/docker
1313
entrypoint: bash
14-
env:
15-
# Required because the default HOME is /builder/root but buildx is
16-
# installed in /root/.docker. Not setting this results in docker not
17-
# finding buildx during make.
18-
- HOME=/root
1914
args:
2015
- -c
2116
- |
2217
set -xeuo pipefail
2318
24-
# Run the image's buildx entrypoint to initialise the build environment
25-
# appropriately for the image before running make
26-
/buildx-entrypoint version
19+
# Initialise a new builder instance
20+
docker buildx create --use
21+
22+
# Create docker credentials for pushing to gcr.io from our inherited
23+
# gcloud credentials
24+
gcloud auth configure-docker
2725
2826
make push-multiarch-images \
2927
REGISTRY=gcr.io/$PROJECT_ID \

0 commit comments

Comments
 (0)