Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#87 from BlaineEXE/use-push
Browse files Browse the repository at this point in the history
cloudbuild: push images straight from docker build
  • Loading branch information
k8s-ci-robot authored Sep 15, 2023
2 parents 5fc4c3b + bc000d7 commit 9ad2990
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ steps:
args:
- buildx
- build
- --load # https://docs.docker.com/build/drivers/docker-container/#loading-to-local-image-store
- --push # --load doesn't work with multi-platform builds, so just push from docker build
- --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 All @@ -37,7 +37,3 @@ steps:
- --tag=gcr.io/k8s-staging-sig-storage/${_IMAGE}:${_PULL_BASE_REF}
- --tag=gcr.io/k8s-staging-sig-storage/${_IMAGE}:latest
- .
images:
- gcr.io/k8s-staging-sig-storage/${_IMAGE}:${_GIT_TAG}
- gcr.io/k8s-staging-sig-storage/${_IMAGE}:${_PULL_BASE_REF}
- gcr.io/k8s-staging-sig-storage/${_IMAGE}:latest

0 comments on commit 9ad2990

Please sign in to comment.