Dev Deployment Pipeline Documentation ===================================== Create a deployment pipeline documentation for [application name]. Pipeline details: - Application: [name] - Cloud provider: [AWS/GCP/Azure] - CI/CD tool: [GitHub Actions/Jenkins/GitLab CI] - Environments: [dev/staging/production] - Deployment strategy: [blue-green/rolling/canary] - Approval required: [yes — who/no] DEPLOYMENT PIPELINE DOCUMENTATION 1. PIPELINE OVERVIEW TRIGGER CONDITIONS - Push to main: [triggers staging deploy] - Pull request: [triggers test pipeline] - Tag v*.*.*: [triggers production deploy] - Manual trigger: [when and who can] PIPELINE STAGES 1. Lint and format check 2. Unit tests 3. Integration tests 4. Security scan 5. Build artifact 6. Deploy to staging 7. Smoke tests on staging 8. [Manual approval for production] 9. Deploy to production 10. Production health check 2. ENVIRONMENT CONFIGURATION DEVELOPMENT - URL: [dev.example.com] - Database: [dev instance] - Auto-deploys: [yes — every merge to dev branch] - Data: [synthetic/anonymized] STAGING - URL: [staging.example.com] - Database: [staging instance] - Auto-deploys: [yes — every merge to main] - Data: [production-like anonymized] PRODUCTION - URL: [example.com] - Database: [production] - Deploys: [manual approval required] - Approval: [team lead/on-call] 3. DEPLOYMENT STEPS PRE-DEPLOYMENT ☐ All tests passing ☐ Security scan passed ☐ Dependencies updated ☐ Database migrations tested on staging ☐ Rollback plan confirmed ☐ On-call notified for major releases DEPLOYMENT ```bash # Example deployment commands docker build -t app:$VERSION . docker push registry/app:$VERSION kubectl set image deployment/app app=registry/app:$VERSION kubectl rollout status deployment/app ``` POST-DEPLOYMENT ☐ Health check endpoint returns 200 ☐ Key user flows smoke tested ☐ Error rate within normal range ☐ Latency within normal range ☐ Deployment logged in changelog 4. ROLLBACK PROCEDURE Trigger: [error rate above X% / latency above Xms] Steps: ```bash kubectl rollout undo deployment/app # Verify rollback successful kubectl rollout status deployment/app ``` Time to rollback: [under X minutes] 5. MONITORING DURING DEPLOY - Error rate dashboard: [link] - Latency dashboard: [link] - Business metrics: [link] - Logs: [link] 6. SECRETS MANAGEMENT - Tool: [AWS Secrets Manager/Vault/GitHub Secrets] - Never in code or config files - Rotation policy: [frequency] Source: https://promptzyo.com/prompt/dev-deployment-pipeline-documentation