Skip to content

Commit 2be12b3

Browse files
authored
Revert cloudbuild to gcr.io/k8s-testimages/gcb-docker-gcloud (#2155)
We can't use the vanilla docker image because we also need the `gcloud` binary.
1 parent bf18e3e commit 2be12b3

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

cloudbuild.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,25 @@ options:
99
substitution_option: ALLOW_LOOSE
1010
machineType: 'N1_HIGHCPU_8'
1111
steps:
12-
- name: gcr.io/cloud-builders/docker
12+
- name: gcr.io/k8s-testimages/gcb-docker-gcloud
1313
entrypoint: bash
14+
env:
15+
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
16+
# set the home to /root explicitly to if using docker buildx
17+
- HOME=/root
1418
args:
1519
- -c
1620
- |
1721
set -xeuo pipefail
1822
19-
# Initialise a new builder instance
20-
docker buildx create --use
21-
2223
# Create docker credentials for pushing to gcr.io from our inherited
2324
# gcloud credentials
2425
gcloud auth configure-docker
2526
27+
# Run the image's buildx entrypoint to initialise the build environment
28+
# appropriately for the image before running make
29+
/buildx-entrypoint version
30+
2631
make push-multiarch-images \
2732
REGISTRY=gcr.io/$PROJECT_ID \
2833
VERSION=$_SHORT_TAG

0 commit comments

Comments
 (0)