feat: Add dynamic Git-based versioning system

- Add app/version.py module generating version from Git metadata
- Format: YYYY.MM.DD+<commit_hash> (e.g., 2025.01.18+576c8ca9)
- Add +dirty suffix for uncommitted changes (ignores .env, technotes/)
- Add /api/version endpoint for monitoring
- Display version in hamburger menu
- Add freeze mechanism for Docker builds

Deploy command updated:
git push && ssh ... "cd ~/mc-webui && git pull && python -m app.version freeze && docker compose up -d --build"

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
MarekWo
2026-01-18 11:47:22 +01:00
parent 7a626ba105
commit 7ca3f4d2dd
7 changed files with 106 additions and 2 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
"""
mc-webui - Flask application package
"""
__version__ = "0.1.0"
Version is managed dynamically via app/version.py based on Git metadata.
"""