Skip to content

Commit 58ced47

Browse files
barthy1tekton-robot
authored andcommitted
Use dogfooding buildx image for multi-arch builds
Signed-off-by: Yulia Gaponenko <[email protected]>
1 parent d48fbd7 commit 58ced47

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tekton/build-push-ma-base-image.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
- name: builtBaseImage
1717
type: image
1818
steps:
19-
- image: gcr.io/google.com/cloudsdktool/cloud-sdk
19+
- image: gcr.io/tekton-releases/dogfooding/buildx-gcloud:latest
2020
name: build-image
2121
env:
2222
# Connect to the sidecar over TCP, with TLS.
@@ -39,14 +39,11 @@ spec:
3939
# Setup docker-auth
4040
gcloud auth configure-docker
4141
42+
ln -s /root/.docker/cli-plugins ~/.docker/cli-plugins
43+
4244
# add qemu bins
4345
docker run --rm --privileged tonistiigi/binfmt:latest --install all
4446
45-
#install buildx
46-
mkdir -p ~/.docker/cli-plugins
47-
curl -fsSL https://github.com/docker/buildx/releases/download/v0.4.2/buildx-v0.4.2.linux-amd64 > ~/.docker/cli-plugins/docker-buildx
48-
chmod u+x ~/.docker/cli-plugins/docker-buildx
49-
5047
#create docker context
5148
docker context create context1
5249

0 commit comments

Comments
 (0)