Config CI/CD (C#)
Overview
Gerar workflows GitHub Actions para backend C# com ASP.NET Core (.NET 8+), cobrindo CI (dotnet build + test) e CD (build Docker + push + deploy).
Estrutura gerada
project-root/
└── .github/
└── workflows/
├── ci.yml ← dotnet build + test em PRs
└── cd.yml ← build Docker + push + deploy em main/tags
Workflow
- Verificar se
.github/workflows/existe; criar se necessário. - Criar
ci.yml— executado em PRs comdotnet test. - Criar
cd.yml— executado em push paramainou tagsv*. - Perguntar ao usuário: registry (GHCR, Docker Hub, ECR)?
- Perguntar: ambiente de deploy?
References
- Consultar
references/cicd-pattern-cs.mdpara templates completos. - Consultar
../skills-standards.mdpara convenções globais (seção C#).
Global Standards
- Consultar
../skills-standards.mdpara padrões globais de nomenclatura e convenções gerais entre skills.