Skip to content

Commit

Permalink
Push arch specific images
Browse files Browse the repository at this point in the history
We have 3 registries for images:
* multiarch
* amd64
* arm64
Even we can keep everything in the first one,
we still want to support last two registries
for users who may need that.

Signed-off-by: GitHub <noreply@github.com>
  • Loading branch information
code-elinka authored May 24, 2023
1 parent 02cd7a6 commit ddcf2e3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions hack/push-multiarch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,16 @@ do
--tag ${MULTIARCH_IMAGE} \
-f Dockerfile.${binary} .
echo "done, pushed $MULTIARCH_IMAGE image"

# Download crane cli
curl -sL "https://github.com/google/go-containerregistry/releases/download/v0.15.2/go-containerregistry_$(uname -s)_$(uname -m).tar.gz"
tar -zxvf go-containerregistry.tar.gz -C /usr/local/bin/ krane

# Tag arch specific images for the legacy registries
for arch in ${ALL_ARCH}
do
# krane is a variation of crane that supports k8s auth
krane copy --platform linux/${arch} ${MULTIARCH_IMAGE} ${REGISTRY}/ingress-gce-${binary}-${arch}:${VERSION}
done
echo "images are copied to arch specific registries"
done

0 comments on commit ddcf2e3

Please sign in to comment.