AI-Powered DevOps Automation with GitHub Actions
Creates CI/CD pipelines with GitHub Actions, integrating AI for code review, vulnerability detection, changelogs, and automatic deployment.
Create a complete and intelligent DevOps pipeline for [NOME_PROJETO]. ## Context - Stack: [LINGUAGEM/FRAMEWORK] - Repository: GitHub - Environments: development, staging, production - Cloud: [AWS/GCP/Azure/DigitalOcean] - Container: Docker ## Workflows ### 1. PR Validation - Lint and formatting - Unit tests - Security analysis (Trivy, Snyk) - Automatic code review with Claude AI - Comment with findings ### 2. CI Pipeline - Build the Docker image - Integration tests - Vulnerability scan - Push to registry ### 3. CD Staging - Trigger: merge into develop - Automatic deployment - Smoke tests - Slack notification ### 4. CD Production - Trigger: semantic tag (v*.*.*) - Manual approval - Blue-green deployment - Health check + automatic rollback - CHANGELOG generation ### 5. Maintenance - Dependabot + auto-merge - Cleanup of old branches - Weekly report ## AI Integration - Code review: Claude analyzes diff - Security: unsafe patterns - Changelog: automatic release notes - Alerts: Claude summarizes failures ## IaC - Optimized Dockerfile - docker-compose.yml - Terraform for infra Generate all YAML files and scripts.