feat: expose deploy version (git SHA) on CMS and health endpoint
CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Waiting to run
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Blocked by required conditions
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Blocked by required conditions
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Waiting to run
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Blocked by required conditions

'Is the fix live?' becomes a single check instead of an SSH session:

- CMS: git short SHA read at startup, shown in the bottom bar (v<sha>),
  served by the public GET /version endpoint, recorded in a startup audit
  entry
- Website: deploy.sh exports DEPLOY_VERSION (git SHA), Dockerfile bakes it
  via build ARG into the runtime env, /api/health reports it as
  deployVersion, smoke test asserts a non-'unversioned' stamp

Closes MITHOME-63
This commit is contained in:
Do Siki
2026-08-18 21:19:43 +02:00
parent edd2e46ae3
commit 3a5a09c361
10 changed files with 126 additions and 5 deletions
+4
View File
@@ -28,6 +28,10 @@ echo "🚀 Deploy indítása: [$ENV] környezet (${COMPOSE_FILE})"
echo "📦 Kód frissítése a main ágról..."
git pull origin main
# Deploy version = git short SHA; baked into the image and served via /api/health
# so "which build is live?" is a single curl away.
export DEPLOY_VERSION="$(git rev-parse --short HEAD)"
# 2. Környezeti változók (.env.<env>)
ENV_FILE=".env.${ENV}"
if [ ! -f "$ENV_FILE" ]; then