Deployment
Zero-Downtime Deploy
- Build new version
- Run database migrations (backward-compatible)
- Deploy new containers alongside old
- Health check new containers
- Switch traffic to new containers
- Remove old containers
Rollback Procedure
- Stop new containers
- Revert to previous image tag
- Run rollback migration if needed
- Verify health
- Post-mortem
Pre-Deploy Checklist
- All tests passing
- Security scan clean
- Database migration tested
- Environment variables verified
- Backup taken
- Team notified