Version-Anzeige: Neuesten Git-Tag statt Commit-Hash verwenden

This commit is contained in:
Hördle Bot
2025-12-14 14:24:42 +01:00
parent b7293a4614
commit fb3e4c10dd
2 changed files with 7 additions and 3 deletions

View File

@@ -27,7 +27,9 @@ COPY . .
RUN if [ -n "$APP_VERSION" ]; then \
echo "$APP_VERSION" > /tmp/version.txt; \
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/') || \
echo "dev") > /tmp/version.txt; \
fi && \