Skip to content

Commit

Permalink
Merge pull request #2144 from code-elinka/crane
Browse files Browse the repository at this point in the history
Push arch specific images
  • Loading branch information
k8s-ci-robot authored May 25, 2023
2 parents 56f9a89 + 4beb5d8 commit dd8e944
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 dd8e944

Please sign in to comment.