build_push.sh: show current tag, offer to set new one before build
This commit is contained in:
parent
9910e6e062
commit
222b204d4b
@ -5,13 +5,23 @@ cd "$(dirname "$0")"
|
|||||||
IMAGE=mediaeng/llmproxy
|
IMAGE=mediaeng/llmproxy
|
||||||
PLATFORM=linux/arm64
|
PLATFORM=linux/arm64
|
||||||
|
|
||||||
VERSION=$(git describe --tags --always)
|
CURRENT=$(git describe --tags --always)
|
||||||
if [ -z "$VERSION" ]; then
|
if [ -z "$CURRENT" ]; then
|
||||||
echo "Fehler: git describe liefert kein Ergebnis"
|
echo "Fehler: git describe liefert kein Ergebnis"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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 "Image : $IMAGE"
|
||||||
echo "Platform: $PLATFORM"
|
echo "Platform: $PLATFORM"
|
||||||
echo "Tags : $IMAGE:$VERSION $IMAGE:latest"
|
echo "Tags : $IMAGE:$VERSION $IMAGE:latest"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user