devopsintermediate

CI/CD Pipeline Generator

Generates CI/CD pipeline configuration for GitHub Actions, GitLab CI, or Jenkins.

Prompt

Generate a CI/CD pipeline for the following project:

**Platform**: {{platform}} (GitHub Actions/GitLab CI/Jenkins)
**Language/Framework**: {{stack}}
**Pipeline stages needed**: {{stages}}
**Deployment target**: {{target}} (AWS/GCP/Azure/Kubernetes/Netlify/Vercel)

Include:
1. **Trigger rules**: on push to main, on PR, on tag, manual dispatch
2. **Build stage**: install dependencies, compile, lint, type check
3. **Test stage**: unit tests, integration tests, coverage report
4. **Security stage**: dependency audit, SAST scan, secrets detection
5. **Build artifacts**: Docker image build and push, or package build
6. **Deploy stage**: staging deploy on PR merge, production on tag
7. **Notifications**: Slack/email on failure
8. **Caching**: dependency caching, Docker layer caching
9. **Matrix builds**: if multiple versions/platforms needed
10. **Environment variables**: secrets management approach

Output the complete pipeline YAML file with comments.

Variables

{{platform}}{{stack}}{{stages}}{{target}}

Use Cases

  • Setting up CI/CD for new projects
  • Migrating between CI platforms
  • Adding security scanning to pipelines

Compatible Models

claude-sonnet-4-20250514gpt-4o

Tags

ci-cdgithub-actionsautomationdeployment

Details

Author
PromptIndex
Updated
2026-04-01
Difficulty
intermediate

Related Prompts