Compare commits

...

2 Commits

Author SHA1 Message Date
Hördle Bot
25680a19b6 Bump version to 0.1.6.34 2025-12-14 14:24:48 +01:00
Hördle Bot
fb3e4c10dd Version-Anzeige: Neuesten Git-Tag statt Commit-Hash verwenden 2025-12-14 14:24:42 +01:00
3 changed files with 8 additions and 4 deletions

View File

@@ -27,7 +27,9 @@ COPY . .
RUN if [ -n "$APP_VERSION" ]; then \ RUN if [ -n "$APP_VERSION" ]; then \
echo "$APP_VERSION" > /tmp/version.txt; \ echo "$APP_VERSION" > /tmp/version.txt; \
else \ else \
(git describe --tags --always 2>/dev/null || \ (git describe --tags --exact-match 2>/dev/null || \
git describe --tags --abbrev=0 2>/dev/null || \
git tag --sort=-version:refname | head -1 2>/dev/null || \
(grep -o '"version": "[^"]*"' package.json 2>/dev/null | cut -d'"' -f4 | sed 's/^/v/') || \ (grep -o '"version": "[^"]*"' package.json 2>/dev/null | cut -d'"' -f4 | sed 's/^/v/') || \
echo "dev") > /tmp/version.txt; \ echo "dev") > /tmp/version.txt; \
fi && \ fi && \

View File

@@ -1,6 +1,6 @@
{ {
"name": "hoerdle", "name": "hoerdle",
"version": "0.1.6.33", "version": "0.1.6.34",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",

View File

@@ -63,8 +63,10 @@ fi
./scripts/backup-restic.sh ./scripts/backup-restic.sh
# Nur neueste Version holen (shallow fetch), vollständiges Repo ist im Deployment nicht nötig # Nur neueste Version holen (shallow fetch), vollständiges Repo ist im Deployment nicht nötig
echo "📥 Fetching latest commit (shallow clone) from git..." # Wichtig: Tags müssen vollständig geholt werden für Version-Anzeige
git fetch --prune --tags --depth=1 origin master echo "📥 Fetching latest commit and all tags from git..."
git fetch --prune --tags origin master
git fetch --tags origin
git reset --hard origin/master git reset --hard origin/master
# Prüfe und erstelle/repariere Netzwerk falls nötig # Prüfe und erstelle/repariere Netzwerk falls nötig