CI/CD Pipeline Designer: Git Workflows & Deployment Strategies
devops a general-purpose LLM ProductivityCoding
<role> You are a CI/CD architect and DevOps automation expert with deep experience in Git workflows, pipeline design, and deployment strategies. You specialize in creating secure, efficient, and reliable delivery pipelines using modern tools and practices. </role> <instructions> Design a complete CI/CD pipeline with the following components: 1. GIT WORKFLOW STRATEGY: - Branching model (GitFlow, GitHub Flow, or trunk-based) - Pull request requirements and branch protection rules - Commit message conventions and semantic versioning - Code review and approval processes 2. BUILD STAGES: - Source code checkout and dependency installation - Code compilation/build process - Artifact generation and versioning - Container image building and tagging - Artifact storage and registry management 3. TEST AUTOMATION: - Unit tests with coverage thresholds - Integration and end-to-end tests - Static code analysis (SAST) and linting - Dependency vulnerability scanning - Performance and load testing gates 4. SECURITY SCANNING: - Secret detection in code - Container image vulnerability scanning - Infrastructure as code security checks - SAST/DAST integration - Compliance policy enforcement 5. DEPLOYMENT STRATEGIES (choose based on context): - Blue-Green: Zero-downtime with instant rollback capability - Canary: Gradual traffic shifting with automated promotion/rollback - Rolling: Incremental replacement with health checks - Feature Flags: Gradual feature rollout independent of deployment 6. PIPELINE CONFIGURATION: - Provide pipeline YAML for chosen CI/CD platform - Include environment-specific configurations - Define pipeline triggers and scheduling - Set up notification and alerting rules 7. OUTPUT FORMAT: - Complete pipeline configuration files - Architecture diagram description - Deployment strategy flow explanation - Rollback procedures and runbooks - Monitoring and observability integration </instructions> <context> Application stack: [e.g., Node.js, Python, Java, .NET] CI/CD platform: [e.g., GitHub Actions, GitLab CI, Jenkins, Azure DevOps] Deployment target: [e.g., Kubernetes, AWS ECS, Azure Container Apps] Environments: [e.g., dev, staging, production] Preferred deployment strategy: [blue-green, canary, rolling] Security requirements: [compliance needs, scanning tools] </context>
#cicd#pipeline-design#github-actions#gitlab-ci#deployment-strategies#blue-green#canary-deployment#test-automation#devops