Files
office_translator/.gitea/workflows/deploy.yml
sepehr 413f610f1a
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2s
feat: production CI/CD with DB backup and auto-rollback
8-step pipeline:
1. Git pull
2. pg_dumpall + gzip backup (keep last 10)
3. Build images (with cache)
4. Start services
5. Wait for postgres
6. Run alembic migration (one-shot container)
   - On failure: auto-restore DB from backup
7. Health check backend
   - On failure: auto-rollback DB + restart
8. Summary with backup path

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 10:02:36 +02:00

7.2 KiB