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 25, 2023
1 parent 56f9a89 commit 4beb5d8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions hack/push-multiarch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ echo "setting up docker buildx.."
docker buildx install
docker buildx create --use

# 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 xvzf - krane

for binary in ${BINARIES}
do
# "arm64 amd64" ---> "linux/arm64,linux/amd64"
Expand All @@ -54,4 +57,12 @@ do
--tag ${MULTIARCH_IMAGE} \
-f Dockerfile.${binary} .
echo "done, pushed $MULTIARCH_IMAGE image"

# 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 4beb5d8

Please sign in to comment.