P
IntermediateAll AIs

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 :
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. 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

Setting up CI/CD for a new projectMigrating from Jenkins or CircleCI to GitHub ActionsAuditing and improving an existing pipeline

Expected Output

GitHub Actions YAML files for CI and CD, list of secrets to configure, recommended branch 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

📬 Get new prompts every week

Join our newsletter and never miss a prompt.