Skip to main content
7BBusyBoss

CI pipeline (GitHub Actions)

A complete CI pipeline YAML — lint, test, build, scan, deploy — for a Node/Python/Go service.

Caching, matrix builds, secrets handling, deploy gates.

DevOps & SREcigithub-actions

The prompt

Copy this into ChatGPT, Claude, Gemini or any assistant you already use — then paste your own stack + deploy target underneath it.

Generate .github/workflows/ci.yml. Stages: checkout, setup, cache, install, lint, test, build, security scan, deploy (gated on main). Use:

- Matrix builds where useful
- Cache key on lockfile hash
- OIDC for cloud auth (no long-lived keys)
- Conditional deploy only on push to main
- Concurrency to cancel duplicate runs

Output the full YAML.

Rules:
- No `actions/checkout@master` — pin to v4 (or current major).
- Use `env` for non-secret config, `secrets` for credentials.

Example input

Stack: Node.js 20 + pnpm + Next.js. Deploy: Vercel.

Or run it here

51/8000
Output will appear here after you click Run.
Or run in your favourite chatbot

Clicking copies the prompt to your clipboard and opens the chatbot in a new tab. Gemini doesn't accept URL params — paste manually with Ctrl/Cmd+V.

Browse the full free AI prompt library or see more devops & sre prompts.