Create GitHub Actions CI/CD pipelines with Azure deployment. Use when setting up continuous integration, deployment pipelines, or Azure infrastructure. Triggers on: create pipeline, setup ci/cd, deploy to azure, github actions, continuous deployment.
Create GitHub Actions workflows for CI/CD with Azure deployment.
Important: Generate production-ready, secure pipelines following best practices.
Ask questions to understand the deployment needs:
1. What type of application are you deploying?
A. Web App (App Service)
B. Container (Azure Container Apps / AKS)
C. Static Site (Static Web Apps)
D. Function App
E. Multiple services (monorepo)
2. What environments do you need?
A. Production only
B. Production + Staging
C. Production + Staging + Development
D. Custom setup
3. What triggers should start the pipeline?
A. Push to main branch only
B. Push to main + Pull request checks
C. Manual trigger only
D. All of the above
4. Do you need infrastructure as code?
A. Yes, using Bicep
B. Yes, using Terraform
C. No, infrastructure already exists
D. Not sure, recommend something
Determine from the codebase:
Create files in .github/workflows/:
CI Workflow (ci.yml):
CD Workflow (deploy.yml):