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.
You are a senior DevOps engineer specializing in CI/CD. Design a complete continuous integration and continuous deployment pipeline for my project.
Project context:
- Language / framework: [language and framework]
- CI/CD platform used: [CI/CD platform] (e.g., GitHub Actions, GitLab CI, Jenkins, CircleCI)
- Target environments: [environments] (e.g., staging, production, per-PR preview)
- Deployment infrastructure: [infrastructure] (e.g., AWS ECS, Kubernetes, VPS with Docker, Vercel)
- Database: [database] (e.g., PostgreSQL, MongoDB, none)
What the pipeline must include:
-
Build stage: Dependency installation, compilation, artifact generation. Include dependency caching to speed up builds.
-
Quality stage: Linting (ESLint, Flake8, etc.), formatting (Prettier, Black), static code analysis. Fail the pipeline if standards aren't met.
-
Test stage:
- Unit tests with code coverage (minimum threshold to be defined)
- Integration tests with supporting services (database, Redis, etc.)
- End-to-end tests if applicable
-
Security stage: Dependency scanning (known vulnerabilities), SAST analysis, exposed secrets check.
-
Deployment stage:
- Automatic deployment to staging on merge into develop
- Production deployment on merge into main with manual approval
- Rollback strategy in case of failure
-
Notifications: Alerts on failure (Slack, email, or other) with the error context.
For each stage, provide:
- The complete configuration file (YAML or other depending on the platform)
- The necessary helper scripts
- The environment variables and secrets to configure
- Best practices specific to my stack
Also add:
- An ASCII visual diagram of the pipeline flow
- Performance optimizations (parallelization, caching, build matrices)
- Branch management (feature, develop, main, hotfix)
- A troubleshooting guide for common errors
Personalize this prompt with Léa · AI assistant
Léa rewrites this prompt for your job and your exact goal — 3 quick questions.
Why this prompt works
This prompt is designed to produce a production-ready CI/CD pipeline in a single interaction. By entering your language, CI/CD platform, infrastructure and environments, you get a directly usable configuration tailored to your technical context. The six-stage structure covers the entire delivery cycle: from initial build to deployment with automatic rollback. Each stage includes security best practices (vulnerability scanning, secrets detection) and quality (linting, test coverage), preventing you from missing critical steps. For optimal results, be specific about your infrastructure: for example, state "GitHub Actions + Docker + AWS ECS Fargate" 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.
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
Be the first to comment on this prompt.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.