Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Commit bc000d7

Browse files
committed
cloudbuild: push images straight from docker build
Using `docker buildx build --load ...` with multi arch builds returns the below error: > error: docker exporter does not currently support exporting manifest lists Use --push instead to push images directy from the docker build. This makes the `images` cloudbuild step unnecessary. Signed-off-by: Blaine Gardner <[email protected]>
1 parent 5fc4c3b commit bc000d7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: cloudbuild.yaml

+1-5
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ steps:
2828
args:
2929
- buildx
3030
- build
31-
- --load # https://docs.docker.com/build/drivers/docker-container/#loading-to-local-image-store
31+
- --push # --load doesn't work with multi-platform builds, so just push from docker build
3232
- --platform=${_PLATFORMS}
3333
- --tag=gcr.io/k8s-staging-sig-storage/${_IMAGE}:${_GIT_TAG}
3434
# using _PULL_BASE_REF as a tag will often just build and overwrite the same 'master' tag,
@@ -37,7 +37,3 @@ steps:
3737
- --tag=gcr.io/k8s-staging-sig-storage/${_IMAGE}:${_PULL_BASE_REF}
3838
- --tag=gcr.io/k8s-staging-sig-storage/${_IMAGE}:latest
3939
- .
40-
images:
41-
- gcr.io/k8s-staging-sig-storage/${_IMAGE}:${_GIT_TAG}
42-
- gcr.io/k8s-staging-sig-storage/${_IMAGE}:${_PULL_BASE_REF}
43-
- gcr.io/k8s-staging-sig-storage/${_IMAGE}:latest

0 commit comments

Comments
 (0)