Create a Complete Automated CI/CD Pipeline
This prompt generates a complete, customized CI/CD pipeline for your stack, covering build, tests, security and multi-environment deployment.
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
Tu es un ingénieur DevOps senior spécialisé en CI/CD. Conçois une pipeline d'intégration et de déploiement continu complète pour mon projet. **Contexte du projet :** - Langage / framework : [LANGAGE_ET_FRAMEWORK] - Plateforme CI/CD utilisée : [PLATEFORME_CI_CD] (ex : GitHub Actions, GitLab CI, Jenkins, CircleCI) - Environnements cibles : [ENVIRONNEMENTS] (ex : staging, production, preview par PR) - Infrastructure de déploiement : [INFRASTRUCTURE] (ex : AWS ECS, Kubernetes, VPS avec Docker, Vercel) - Base de données : [BASE_DE_DONNEES] (ex : PostgreSQL, MongoDB, aucune) **Ce que la pipeline doit inclure :** 1. **Stage Build** : Installation des dépendances, compilation, génération des artefacts. Inclus le cache des dépendances pour accélérer les builds. 2. **Stage Qualité** : Linting (ESLint, Flake8, etc.), formatage (Prettier, Black), analyse statique du code. Échouer le pipeline si les standards ne sont pas respectés. 3. **Stage Tests** : - Tests unitaires avec couverture de code (seuil minimum à définir) - Tests d'intégration avec services auxiliaires (base de données, Redis, etc.) - Tests end-to-end si applicable 4. **Stage Sécurité** : Scan des dépendances (vulnérabilités connues), analyse SAST, vérification des secrets exposés. 5. **Stage Déploiement** : - Déploiement automatique en staging sur merge dans develop - Déploiement en production sur merge dans main avec approbation manuelle - Stratégie de rollback en cas d'échec 6. **Notifications** : Alertes sur échec (Slack, email ou autre) avec le contexte de l'erreur. Pour chaque stage, fournis : - Le fichier de configuration complet (YAML ou autre selon la plateforme) - Les scripts auxiliaires nécessaires - Les variables d'environnement et secrets à configurer - Les bonnes pratiques spécifiques à ma stack Ajoute également : - Un schéma visuel ASCII du flux de la pipeline - Les optimisations de performance (parallélisation, cache, matrices de build) - La gestion des branches (feature, develop, main, hotfix) - Un guide de dépannage pour les erreurs courantes
Why this prompt works
<p>This prompt is designed to produce a production-ready CI/CD pipeline in a single interaction. By entering your <strong>language, CI/CD platform, infrastructure and environments</strong>, you get a directly usable configuration tailored to your technical context.</p><p>The six-stage structure covers the entire delivery cycle: from initial build to deployment with automatic rollback. Each stage includes <strong>security best practices</strong> (vulnerability scanning, secrets detection) and <strong>quality</strong> (linting, test coverage), preventing you from missing critical steps.</p><p>For optimal results, be specific about your infrastructure: for example, state <strong>"GitHub Actions + Docker + AWS ECS Fargate"</strong> rather than just "cloud". The richer the context, the more operational the generated pipeline will be without modifications. Feel free to iterate by requesting adjustments to a specific stage after the initial generation.</p>
Use Cases
Expected Output
A complete CI/CD configuration file (YAML), auxiliary scripts, a pipeline flow diagram, a list of environment variables to configure, and a best practices guide with common error troubleshooting.
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.
Similar Prompts
Generate Complete Technical Documentation for Your Code
A complete prompt to generate structured and professional technical documentation, adapted to the target audience and project type.
AI-Assisted Complete Code Review
A complete prompt to get an in-depth code review covering bugs, security, performance, readability, and best practices, with concrete fixes.
Legacy Code Refactoring
Safely and incrementally refactor legacy code following SOLID principles and modern best practices.
Create an Accessible React Component
Create fully accessible React components meeting WCAG 2.1 with keyboard navigation, ARIA, and screen reader support.