Skip to content

Commit

Permalink
feat: Build both amd64 and arm64 images, and push both latest and tag…
Browse files Browse the repository at this point in the history
… versions.
  • Loading branch information
andrewjw committed Jul 3, 2024
1 parent 731a588 commit 78948de
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 78948de

Please sign in to comment.