Skip to content

Commit

Permalink
feature: add git tag on docker build (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronkvanmeerten authored Sep 17, 2024
1 parent 6d28fc3 commit 7d8a23a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/bin/bash

# last tag 0.0.1
# last tag 0.0.22
docker buildx build --no-cache --platform=linux/arm64,linux/amd64 --push --pull --progress=plain --tag jitsi/autoscaler:$TAG --tag jitsi/autoscaler:latest .

if [ $? -ne 0 ]; then
echo "Build failed"
exit 1
fi

git tag -a "docker-$TAG" -m "Published in dockerhub as jitsi/autoscaler:$TAG"
git push origin "docker-$TAG"

0 comments on commit 7d8a23a

Please sign in to comment.