Skip to content

Commit

Permalink
Push multiple tags at once (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe authored Nov 3, 2024
1 parent 2c40527 commit 9736341
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions tools/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
.

0 comments on commit 9736341

Please sign in to comment.