From 973634184de9ad717eebc1a6737760813423e0a0 Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Sun, 3 Nov 2024 17:36:37 +0900 Subject: [PATCH] Push multiple tags at once (#425) --- tools/docker.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tools/docker.sh b/tools/docker.sh index 4aaaf8a..a8dc61f 100755 --- a/tools/docker.sh +++ b/tools/docker.sh @@ -2,10 +2,12 @@ set -e -for tag in latest $(git tag --points-at | sed s/^v//); do - docker buildx build \ - --platform linux/386,linux/amd64,linux/arm,linux/arm64 \ - --tag raviqqe/muffet:$tag \ - --push \ - . -done +image=raviqqe/muffet +version=$(git tag --points-at | sed s/^v//) + +docker buildx build \ + --platform linux/386,linux/amd64,linux/arm,linux/arm64 \ + --tag $image:latest \ + ${version:+--tag $image:$version} \ + --push \ + .