feat: Automatische Versionierung basierend auf Git-Tags
- VERSION in install.sh wird jetzt aus Git-Tags gelesen - Format: git describe --tags --always - Beispiel: v0.2.0 → zeigt VERSION=0.2.0 im Script - Fallback auf 'dev' wenn keine Tags vorhanden Vorteil: Version wird automatisch aktualisiert, keine manuelle Änderung nötig
This commit is contained in:
parent
915c28a4e5
commit
4cc9a3744c
|
|
@ -9,7 +9,9 @@ set -e
|
|||
REPO_URL="https://gitea.iotxs.de/RainerWieland/spawner.git"
|
||||
RAW_URL="https://gitea.iotxs.de/RainerWieland/spawner/raw/branch/main"
|
||||
INSTALL_DIR="${PWD}"
|
||||
VERSION="0.1.0"
|
||||
# VERSION automatisch aus Git-Tags bestimmen (z.B. v0.1.0, v0.2.1)
|
||||
# Fallback auf "dev" wenn keine Tags vorhanden
|
||||
VERSION=$(git describe --tags --always 2>/dev/null | sed 's/^v//' || echo "dev")
|
||||
LOG_FILE="${INSTALL_DIR}/spawner-install.log"
|
||||
|
||||
# Farben fuer Output
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user