feat(web): show git SHA in footer for post-deploy verification
Dockerfile takes SOURCE_COMMIT as a build arg and bakes it into the image as GIT_COMMIT. Coolify sets SOURCE_COMMIT on every deploy, so the value in the footer changes with each successful push → build. ARG is placed after COPY . so only a thin final layer rebuilds when the SHA changes; pip install stays cached. Outside Coolify the default is "dev" and the footer renders "build dev". Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
81d6b65eae
commit
0144cb2844
5 changed files with 23 additions and 2 deletions
|
|
@ -59,3 +59,8 @@ PUBLIC_URL: str = getenv("PUBLIC_URL", "https://flat.lab.moritz.run")
|
|||
# --- LLM enrichment (Anthropic Haiku) -----------------------------------------
|
||||
ANTHROPIC_API_KEY: str = getenv("ANTHROPIC_API_KEY", "")
|
||||
ANTHROPIC_MODEL: str = getenv("ANTHROPIC_MODEL", "claude-haiku-4-5-20251001")
|
||||
|
||||
# --- Build info --------------------------------------------------------------
|
||||
# Baked into the image at docker build time via the Dockerfile ARG; rendered in
|
||||
# the site footer so the running commit is visible at a glance.
|
||||
GIT_COMMIT: str = getenv("GIT_COMMIT", "dev")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue