From 222b204d4bf3b05d492330177e32aeb6e87a9356 Mon Sep 17 00:00:00 2001 From: Oliver Hofmann Date: Wed, 29 Apr 2026 09:36:50 +0200 Subject: [PATCH] build_push.sh: show current tag, offer to set new one before build --- build_push.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/build_push.sh b/build_push.sh index 9e90983..09eebbb 100755 --- a/build_push.sh +++ b/build_push.sh @@ -5,13 +5,23 @@ cd "$(dirname "$0")" IMAGE=mediaeng/llmproxy PLATFORM=linux/arm64 -VERSION=$(git describe --tags --always) -if [ -z "$VERSION" ]; then +CURRENT=$(git describe --tags --always) +if [ -z "$CURRENT" ]; then echo "Fehler: git describe liefert kein Ergebnis" exit 1 fi -echo "Version : $VERSION" +echo "Aktueller Tag: $CURRENT" +read -rp "Neuer Tag [${CURRENT}]: " INPUT +VERSION="${INPUT:-$CURRENT}" + +if [ "$VERSION" != "$CURRENT" ]; then + git tag "$VERSION" + git push origin "$VERSION" + echo "Tag '$VERSION' gesetzt und gepusht." +fi + +echo "" echo "Image : $IMAGE" echo "Platform: $PLATFORM" echo "Tags : $IMAGE:$VERSION $IMAGE:latest"