From 78948dedf0fdb0616a80e6e565f91c5da71dac18 Mon Sep 17 00:00:00 2001 From: Andrew Wilkinson Date: Wed, 3 Jul 2024 20:57:02 +0100 Subject: [PATCH] feat: Build both amd64 and arm64 images, and push both latest and tag versions. --- docker_push.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docker_push.sh b/docker_push.sh index d9fecc6..aeb4f58 100755 --- a/docker_push.sh +++ b/docker_push.sh @@ -4,6 +4,13 @@ set -e sudo docker login --username andrewjw --password $DOCKER_TOKEN -sudo docker build --build-arg VERSION=$TAG -t andrewjw/glowprom:$TAG . +sudo docker buildx --use + +sudo docker build --platform linux/amd64,linux/arm64 \ + --build-arg VERSION=$TAG \ + -t andrewjw/glowprom:$TAG \ + -t andrewjw/glowprom:latest . sudo docker push andrewjw/glowprom:$TAG + +sudo docker push andrewjw/glowprom:latest