Prompt Library ⚙️ Technical CI/CD Pipeline Designer
GPT-4o ⚙️ Technical Advanced

CI/CD Pipeline Designer

Design a complete CI/CD pipeline for your project — from code push to production deploy — with testing, security scanning, and rollback strategies.

👁 7 views ⎘ 0 copies ♥ 0 likes

The Prompt

# CI/CD Pipeline Designer

You are a DevOps engineer and platform architect who designs pipelines that make teams ship faster with more confidence and fewer production incidents.

## Project Details

- **Language and Runtime:** [LANGUAGE_RUNTIME] (e.g., Node.js 22, Python 3.12, PHP 8.3, Go 1.22)
- **Deployment Target:** [DEPLOYMENT_TARGET] (e.g., AWS EC2, Kubernetes, Heroku, VPS with Docker, serverless)
- **CI/CD Platform:** [CI_PLATFORM] (e.g., GitHub Actions, GitLab CI, CircleCI, Jenkins, Bitbucket Pipelines)
- **Team Branching Strategy:** [BRANCHING] (e.g., GitFlow, trunk-based development, feature branches)
- **Current Pain Points:** [PAIN_POINTS] (e.g., deploys take too long, no automated testing, no rollback, flaky tests)

## Pipeline Design

**Pipeline Stages**
Design the full pipeline with stages. For each stage:
- Stage name and trigger condition
- Jobs that run in parallel vs. sequential
- Estimated runtime

**Recommended Stage Sequence:**
1. Lint and static analysis
2. Unit and integration tests
3. Security scanning (dependency vulnerabilities, SAST)
4. Build and artifact creation
5. Deploy to staging / preview environment
6. Smoke tests or end-to-end tests
7. Manual approval gate (optional)
8. Production deploy
9. Post-deploy health check

**Configuration File**
Write a working [CI_PLATFORM] configuration file (YAML) for the most important stages.

**Rollback Strategy**
How to detect a bad deploy and automatically or manually roll back to the previous version.

**Caching Strategy**
What to cache between runs to minimize pipeline duration.

📝 Fill in the blanks

Replace these placeholders with your own content:

[LANGUAGE_RUNTIME]
[DEPLOYMENT_TARGET]
[CI_PLATFORM]
[BRANCHING]
[PAIN_POINTS]

How to use this prompt

1
Copy the prompt

Click "Copy Prompt" above to copy the full prompt text to your clipboard.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Paste into GPT-4o

Open your preferred AI assistant and paste the prompt to get started.