Skip to content

Commit

Permalink
testing linux repos
Browse files Browse the repository at this point in the history
  • Loading branch information
alanprot committed Dec 15, 2022
1 parent 30f951a commit e4b4429
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions push-images
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,15 @@ done
push_image() {
local image="$1"

# For now only pushing amd64 images to quay
docker tag ${image}:${IMAGE_TAG}-amd64 ${image}:${IMAGE_TAG}
docker push ${image}:${IMAGE_TAG}-$arch
for arch in amd64 arm64; do \
echo "Pushing ${image}-linux:${IMAGE_TAG}-$arch"
docker tag {image}:${IMAGE_TAG}-$arch {image}-linux:${IMAGE_TAG}-$arch
docker push ${image}-linux:${IMAGE_TAG}-$arch
done;

# docker manifest create ${image}:${IMAGE_TAG} --amend ${image}:${IMAGE_TAG}-amd64 --amend ${image}:${IMAGE_TAG}-arm64
# docker manifest push ${image}:${IMAGE_TAG}


if [ -n "${NO_QUAY}" ]; then
return
Expand All @@ -47,8 +53,8 @@ push_image() {
docker push ${docker_hub_image}-linux:${IMAGE_TAG}-$arch
done;

docker manifest create ${docker_hub_image}:${IMAGE_TAG} --amend ${docker_hub_image}-linux:${IMAGE_TAG}-amd64 --amend ${docker_hub_image}-linux:${IMAGE_TAG}-arm64
docker manifest push ${docker_hub_image}:${IMAGE_TAG}
#docker manifest create ${docker_hub_image}:${IMAGE_TAG} --amend ${docker_hub_image}-linux:${IMAGE_TAG}-amd64 --amend ${docker_hub_image}-linux:${IMAGE_TAG}-arm64
#docker manifest push ${docker_hub_image}:${IMAGE_TAG}
}

for image in ${IMAGES}; do
Expand Down

0 comments on commit e4b4429

Please sign in to comment.