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 :
-
Stage Build : Installation des dépendances, compilation, génération des artefacts. Inclus le cache des dépendances pour accélérer les builds.
-
Stage Qualité : Linting (ESLint, Flake8, etc.), formatage (Prettier, Black), analyse statique du code. Échouer le pipeline si les standards ne sont pas respectés.
-
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
-
Stage Sécurité : Scan des dépendances (vulnérabilités connues), analyse SAST, vérification des secrets exposés.
-
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
-
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
Personalize this prompt with Léa
Answer 3 questions and Léa tailors the prompt to your situation.
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.
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
Ajoutez un stage de déploiement à sec (dry-run) avant le vrai déploiement. Il exécute les scripts sans effectuer les mutations, validant la configuration et les secrets. Cela évite les rollbacks coûteux en production.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.
Go further
Similar Prompts
Stable Diffusion Prompt to Create a Software Architecture
Stable Diffusion offers fascinating possibilities for visualizing abstract concepts like software architecture. By combining precise technical terms with suitable visual directives, it becomes possible to generate stylized diagrams, infrastructure schemas, and visual representations of complex systems. Whether you are a developer looking to illustrate technical documentation, a software architect preparing a presentation, or a trainer aiming to make abstract concepts tangible, Stable Diffusion can transform your text descriptions into impactful visuals. The tool particularly excels at creating conceptual illustrations showing interactions between components, data flows, and abstraction layers. While Stable Diffusion does not replace traditional UML diagramming tools, it brings an artistic and instantly understandable dimension to your architectures, ideal for executive presentations, technical blog posts, or training materials. The key lies in crafting prompts that balance technical precision with visual vocabulary the model masters.
Implement pipeline as code testing
Test CI/CD pipelines
Design a Complete REST API
Design a robust and well-structured REST API with OpenAPI documentation, error handling, and security best practices.
Learn Git Basics for Beginners
Learn Git from scratch with illustrated explanations, concrete examples, a practical workflow, and an essential commands cheatsheet.