You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci): publish multi-arch image to multiple registry (#1709)
## Which problem is this PR solving?
- #1708
`ko` does produce a multi-arch image, but `docker push` doesn't push a
multi-arch image.
## Short description of the changes
This PR uses `crane cp` which has multi-arch support to copy multi-arch
image manifests between registries.
- wire up `crane` as a docker build dependency
- reorganize `build_docker.sh` to use a `PRIMARY_DOCKER_REPO`
environment variable to designate a prime destination for a particular
build
- if left unset, `ko.local` is the default and the image will only be
built and "published" to the local registry
- if set, the image build will be published to the given registry target
along with the appropriate tags as determined by the build script
- `COPY_DOCKER_REPOS` replaces `KO_DOCKER_REPOS`
- a comma-separated list of **additional** registry repos to copy the
image published to `PRIMARY_DOCKER_REPO`
- same collection of tags will be applied to the copies
---------
Co-authored-by: Robb Kidd <[email protected]>
0 commit comments