P
💻DeveloppementAdvancedAll AIs

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

Personalize this prompt with Léa

Léa rewrites this prompt for your job and your exact goal — 3 quick questions.

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

Set up a CI/CD pipeline for a new project from scratchModernize a manual deployment process to automated continuous deliveryAdd security and quality stages to an existing pipeline

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 Optimizer

Comments

  • 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

💻DeveloppementIntermediateAll AIs

Sora Prompt for Generating Unit Tests

Sora, developed by OpenAI, is primarily known as a video generation model, but its AI ecosystem can be leveraged for software development tasks, including generating unit tests. By crafting precise and structured prompts, you can harness Sora's contextual understanding capabilities to produce robust test suites covering nominal cases, edge cases and error scenarios. Automated unit test generation saves developers significant time while improving code coverage. A good prompt must specify the programming language, desired testing framework, expected behavior of the function to be tested, and project-specific constraints. This systematic approach ensures maintainable, readable tests that follow industry best practices. Whether you are working on a REST API, utility library or complex application, the prompts presented in this guide will help you produce professional-quality unit tests in seconds.

0303
💻DeveloppementIntermediateChatGPT

ChatGPT Prompt for Generating Python Code

ChatGPT has become an indispensable tool for Python developers, whether beginners or experienced. Thanks to its advanced understanding of natural language, it can transform a functional description into clean, structured, and functional Python code in seconds. But the quality of the generated code depends directly on the quality of the prompt used. A vague prompt will produce generic and often unusable code, while a well-structured prompt will generate production-ready code with error handling, typing, and documentation. In this guide, we provide optimized prompts to get the most out of ChatGPT for generating Python code. Whether you need to write an automation script, a REST API, a data processing algorithm, or a complex class, these prompts will help you obtain precise and professional results. The goal is to save you time while maintaining a high level of quality, guiding ChatGPT with the right instructions so that it respects PEP 8 conventions, includes docstrings, and produces maintainable code.

0451
💻DeveloppementIntermediateAll AIs

Implement Kubernetes network policies

Secure Kubernetes networking

0325
💻DeveloppementIntermediateAll AIs

Automate Your Git Commits with AI

This prompt analyzes a Git diff and automatically generates structured commit messages following project conventions, with atomic splitting if needed.

0559