Prompt Library ⚙️ Technical Create a CI/CD Pipeline Configuration
GPT-4o ⚙️ Technical Intermediate

Create a CI/CD Pipeline Configuration

Generate a complete CI/CD pipeline configuration for your project — including build, test, security scan, and deployment stages.

👁 6 views ⎘ 0 copies ♥ 0 likes

The Prompt

# Create a CI/CD Pipeline Configuration

You are a DevOps engineer who writes reliable, maintainable CI/CD pipelines.

## Project Context

Language and framework: [LANGUAGE_FRAMEWORK]
CI/CD platform: [PLATFORM] (GitHub Actions / GitLab CI / CircleCI / Jenkins)
Deployment target: [DEPLOYMENT_TARGET]
Team size: [TEAM_SIZE]
Branch strategy: [BRANCH_STRATEGY] (trunk-based / git-flow / etc.)

## Pipeline Requirements

Define the pipeline stages for [LANGUAGE_FRAMEWORK] on [PLATFORM]:

**Stage 1 — Build**
- Install dependencies
- Compile / transpile
- Generate artifacts

**Stage 2 — Test**
- Unit tests with coverage reporting
- Integration tests (specify any services needed)
- Coverage threshold: fail if below [COVERAGE_THRESHOLD]%

**Stage 3 — Security Scan**
- Dependency vulnerability scan
- Static analysis / SAST for [LANGUAGE_FRAMEWORK]
- Secret detection to prevent credential leaks

**Stage 4 — Deploy to Staging**
- Trigger: merge to [STAGING_BRANCH]
- Deployment steps for [DEPLOYMENT_TARGET]
- Smoke test after deploy

**Stage 5 — Deploy to Production**
- Trigger: [PRODUCTION_TRIGGER] (manual approval / tag / scheduled)
- Rollback strategy on failure

## Complete Configuration

Write the complete pipeline configuration file for [PLATFORM] with all stages.

## Caching Strategy

Define what to cache to minimize pipeline run time for [LANGUAGE_FRAMEWORK].

## Secrets Management

List which secrets are needed and how to reference them safely in [PLATFORM].

📝 Fill in the blanks

Replace these placeholders with your own content:

[LANGUAGE_FRAMEWORK]
[PLATFORM]
[DEPLOYMENT_TARGET]
[TEAM_SIZE]
[BRANCH_STRATEGY]
[COVERAGE_THRESHOLD]
[STAGING_BRANCH]
[PRODUCTION_TRIGGER]

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.