File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -9,20 +9,25 @@ options:
9
9
substitution_option : ALLOW_LOOSE
10
10
machineType : ' N1_HIGHCPU_8'
11
11
steps :
12
- - name : gcr.io/cloud-builders/ docker
12
+ - name : gcr.io/k8s-testimages/gcb- docker-gcloud
13
13
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
14
18
args :
15
19
- -c
16
20
- |
17
21
set -xeuo pipefail
18
22
19
- # Initialise a new builder instance
20
- docker buildx create --use
21
-
22
23
# Create docker credentials for pushing to gcr.io from our inherited
23
24
# gcloud credentials
24
25
gcloud auth configure-docker
25
26
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
+
26
31
make push-multiarch-images \
27
32
REGISTRY=gcr.io/$PROJECT_ID \
28
33
VERSION=$_SHORT_TAG
You can’t perform that action at this time.
0 commit comments