Skip to content

Commit 6daf4ce

Browse files
committed
cloudbuild: use --load flag to allow pushing images
The cloud build uses the `docker-container` driver which does not make build images available in the local image store by default -- only in the cache. This means the cloud build process doesn't see the images in order to push them at the end. Use the --load flag to fix this. See: https://docs.docker.com/build/drivers/docker-container/#loading-to-local-image-store Signed-off-by: Blaine Gardner <[email protected]>
1 parent 25cd40b commit 6daf4ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: cloudbuild.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ steps:
2828
args:
2929
- buildx
3030
- build
31+
- --load # https://docs.docker.com/build/drivers/docker-container/#loading-to-local-image-store
3132
- --platform=${_PLATFORMS}
3233
- --tag=gcr.io/k8s-staging-sig-storage/${_IMAGE}:${_GIT_TAG}
3334
# using _PULL_BASE_REF as a tag will often just build and overwrite the same 'master' tag,

0 commit comments

Comments
 (0)