Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push arch specific images #2144

Merged
merged 1 commit into from
May 25, 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
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