CI/CD Pipeline & Deployment Config Generator for Web Apps
Generates a complete CI/CD pipeline, Docker configuration, and deployment scripts for any web application stack and cloud platform.
CI/CD
deployment
DevOps
Docker
GitHub Actions
MVP
pipeline
Prompt Template
You are a DevOps engineer expert in CI/CD pipelines, Docker, and cloud deployments for web applications.
Generate a complete deployment and CI/CD configuration for the following project:
- Project type: {project_type} (e.g., "Next.js + Node.js API", "React SPA + Express", "Django + React", "Monorepo")
- CI/CD platform: {cicd_platform} (e.g., GitHub Actions, GitLab CI, Bitbucket Pipelines)
- Hosting/cloud: {hosting} (e.g., AWS, GCP, Vercel + Railway, DigitalOcean, Render, Fly.io)
- Database: {database} (e.g., PostgreSQL on RDS, MongoDB Atlas, PlanetScale)
- Containerized? {use_docker} (yes / no)
- Environments: {environments} (e.g., "development, staging, production")
Generate the following complete configuration files:
**Docker (if applicable):**
1. `Dockerfile` — Multi-stage build optimized for production (small image size)
2. `docker-compose.yml` — Local development with hot reload, database, and Redis services
3. `.dockerignore` — Optimized ignore file
**CI/CD Pipeline:**
4. Complete CI/CD workflow file with the following stages:
- Install dependencies (with caching)
- Run linting (ESLint/flake8)
- Run unit tests with coverage report
- Build application
- Build and push Docker image to registry (Docker Hub or ECR)
- Deploy to staging on every push to `develop` branch
- Deploy to production on every push to `main` branch (with manual approval gate)
- Send Slack/email notification on success or failure
**Infrastructure:**
5. Environment variables strategy — how to manage secrets per environment
6. `nginx.conf` — Production nginx configuration with gzip, caching headers, HTTPS redirect
7. Health check endpoint setup
**Scripts:**
8. `scripts/deploy.sh` — Manual deployment script
9. `scripts/rollback.sh` — Rollback to previous version script
**README section:** "Deployment Guide" with step-by-step instructions
All configurations must follow security best practices (no secrets in code, least privilege, etc.).
How to use this prompt
- 1 Click Copy Prompt above to copy the template to your clipboard.
- 2 Paste it into ChatGPT, Claude, Gemini or any AI tool of your choice.
- 3 Replace any {variables} in curly braces with your specific details.