APP_VERSION aus Build-Arg statt Hardcoding im Code
Version wird jetzt beim Docker-Build per --build-arg injiziert. Release-Workflow leitet sie aus dem Tag-Namen ab, Dev-Workflow nutzt den Short-SHA. Verhindert Version-Mismatch bei Releases. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
50bb72803f
commit
6d07b12015
+1
-1
@@ -17,7 +17,7 @@ from models import init_db, get_session, Job, Station, Recording as RecordingMod
|
||||
from recorder import RecordingManager, format_elapsed
|
||||
from scheduler import StreamScheduler
|
||||
|
||||
APP_VERSION = "3.1.0"
|
||||
APP_VERSION = os.environ.get("APP_VERSION", "dev")
|
||||
|
||||
DATA_DIR = os.environ.get("DATA_DIR", "/app/data")
|
||||
STATIC_DIR = os.environ.get("STATIC_DIR", "/app/frontend/static")
|
||||
|
||||
Reference in New Issue
Block a user