fix(excel): move datasheet generation to post-deploy and add persistent volume
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 10s
Build & Deploy / 🧪 QA (push) Successful in 4m40s
Build & Deploy / 🏗️ Build (push) Successful in 4m55s
Build & Deploy / 🚀 Deploy (push) Successful in 22s
Build & Deploy / 🧪 Post-Deploy Verification (push) Failing after 6m28s
Build & Deploy / 🔔 Notify (push) Successful in 4s

This commit is contained in:
2026-03-11 00:11:00 +01:00
parent 7e0e01ecac
commit eae46d3048
3 changed files with 9 additions and 1 deletions

View File

@@ -455,6 +455,11 @@ jobs:
# Restart app to pick up clean migration state
ssh root@alpha.mintel.me "docker restart $APP_CONTAINER"
# Generate Excel Datasheets
echo "📊 Generating Excel Datasheets on live container..."
ssh root@alpha.mintel.me "docker exec $APP_CONTAINER pnpm run excel:datasheets" || echo "⚠️ Excel generation failed (non-blocking)"
ssh root@alpha.mintel.me "docker system prune -f --filter 'until=24h'"
- name: 🧹 Post-Deploy Cleanup (Runner)

View File

@@ -48,7 +48,7 @@ ENV RAYON_NUM_THREADS=3
ENV UV_THREADPOOL_SIZE=3
RUN pnpm build
RUN pnpm run excel:datasheets
# Excel generation moved to post-deploy
# Stage 2: Runner
FROM git.infra.mintel.me/mmintel/runtime:latest AS runner

View File

@@ -14,6 +14,7 @@ services:
PAYLOAD_SECRET: ${PAYLOAD_SECRET:-fallback-secret-for-production-needs-change}
volumes:
- klz_media_data:/app/public/media
- klz_datasheets:/app/public/datasheets
labels:
- "traefik.enable=true"
# HTTP ⇒ HTTPS redirect
@@ -111,3 +112,5 @@ volumes:
external: false
klz_media_data:
external: false
klz_datasheets:
external: false