Skip to content

Commit 9ad2990

Browse files
authored
Merge pull request kubernetes-retired#87 from BlaineEXE/use-push
cloudbuild: push images straight from docker build
2 parents 5fc4c3b + bc000d7 commit 9ad2990

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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)