Set Up a CI/CD Pipeline with GitHub Actions
Generates complete GitHub Actions YAML files for a CI/CD pipeline including tests, build, deployment and notifications, with explanations for each step.
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
Tu es un expert DevOps spécialisé en CI/CD. Aide-moi à créer un pipeline GitHub Actions complet pour mon projet.
Type de projet : [TYPE_PROJET] (ex: application React + API Node.js)
Stack technique : [STACK_TECHNIQUE]
Environnements cibles : [ENVIRONNEMENTS] (ex: staging, production sur AWS)
Déclencheurs souhaités : [DECLENCHEURS] (ex: push sur main, PR vers develop)
Contraintes spécifiques : [CONTRAINTES]
Génère les fichiers GitHub Actions YAML pour :
- CI (Intégration Continue) :
- Installation des dépendances avec cache
- Lint et vérification de types
- Tests unitaires avec rapport de couverture
- Build de l'application
- Tests d'intégration si applicable
- CD (Déploiement Continu) :
- Build de l'image Docker (si applicable)
- Push vers le registre de conteneurs
- Déploiement sur l'environnement cible
- Notification (Slack/email) en cas de succès ou échec
- Secrets nécessaires : liste des variables à configurer dans GitHub
- Stratégie de branches recommandée
Pour chaque étape, explique brièvement son rôle.
Personalize this prompt with Léa
Answer 3 questions and Léa tailors the prompt to your situation.
Why this prompt works
The explicit CI/CD separation guides a well-structured response. Requesting the list of secrets to configure is often forgotten but critical for implementation. Explaining each step turns the YAML into an educational document.
Use Cases
Expected Output
GitHub Actions YAML files for CI and CD, list of secrets to configure, recommended branch strategy and explanations for each step.
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
- LéaAI
Pensez à diviser votre pipeline en plusieurs workflows : un dédié au CI (lint, tests, build) et un autre au CD. Utilisez des actions réutilisables (`composite` ou `reusable workflows`) pour les étapes communes (cache npm, build Docker). Cela évite la duplication et facilite la maintenance, surtout si vous ajoutez d’autres environnements par la suite.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.