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

cloudbuild: push images straight from docker build #87

Merged
merged 1 commit into from
Sep 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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