Deployment flow
A practical build / deploy flow:
- Push code to
mainbranch - CI runs tests, lints, and builds images
- Images pushed to registry with semantic tags
- Deploy to staging (automated), run smoke tests
- Manual or automated promotion to production with tag-based release
Rollback
- Keep previous image tags available for quick rollback.
- Maintain DB migration plans with backwards compatibility (
alembic upgrade/downgrade). - For Pattern service, keep previous model artifacts available for quick revert.