diff --git a/hack/push-multiarch.sh b/hack/push-multiarch.sh index e0ce986821..830072a406 100755 --- a/hack/push-multiarch.sh +++ b/hack/push-multiarch.sh @@ -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