IntermediateAll AIs
Configure a CI/CD pipeline with GitHub Actions
Generate 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 : 1. **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 2. **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 3. **Secrets nécessaires** : liste des variables à configurer dans GitHub 4. **Stratégie de branches** recommandée Pour chaque étape, explique brièvement son rôle.
Why this prompt works
The explicit CI/CD separation guides a well-structured response. The request for a list of secrets to configure is often forgotten but critical for implementation. The explanation of each step transforms the YAML into a training document.
Use Cases
Set up CI/CD for a new projectMigrate from Jenkins or CircleCI to GitHub ActionsAudit and improve an existing pipeline
Expected Output
GitHub Actions YAML files for CI and CD, list of secrets to configure, recommended branching strategy and explanations for each step.
Learn more
Check the full skill on Prompt Guide to master this technique from A to Z.
View on Prompt Guide