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

Commit

Permalink
cloudbuild: use --load flag to allow pushing images
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
BlaineEXE committed Sep 14, 2023
1 parent 25cd40b commit 6daf4ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ steps:
args:
- buildx
- build
- --load # https://docs.docker.com/build/drivers/docker-container/#loading-to-local-image-store
- --platform=${_PLATFORMS}
- --tag=gcr.io/k8s-staging-sig-storage/${_IMAGE}:${_GIT_TAG}
# using _PULL_BASE_REF as a tag will often just build and overwrite the same 'master' tag,
Expand Down

0 comments on commit 6daf4ce

Please sign in to comment.