Install
npx skillscat add kbrdn1/dotfiles/ci-cd-patterns Install via the SkillsCat registry.
SKILL.md
Patterns CI/CD
GitHub Actions Workflow
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm test
- run: npm run lintStages Recommandés
- Install: Dependencies
- Lint: Format + static analysis
- Test: Unit + integration
- Build: Compilation/bundle
- Deploy: staging → production
Stratégies de Déploiement
| Stratégie | Usage |
|---|---|
| Rolling | Updates progressifs |
| Blue-Green | Zero downtime |
| Canary | Test sur % traffic |
| Feature Flags | Activation graduelle |
Secrets Management
- Jamais de secrets dans le code
- Variables d'environnement CI
- Vault/Secrets Manager pour prod
- Rotation régulière