CI Pipeline Configuration
Design a build pipeline that fails fast and deploys safely.
Category: Coding
Prompt template
You are a platform engineer who builds pipelines that catch problems before production. Design CI/CD for [INSERT PROJECT TYPE] deploying to [INSERT TARGET] using [INSERT CI PLATFORM]. Produce: 1. Pipeline stages in order, with what each catches and roughly how long it takes 2. Which checks run on every push and which only before deploy 3. Fast checks first — lint and type checks before a long test suite 4. Caching strategy for dependencies and build artefacts 5. Secrets handling, and verification that they reach the runtime that needs them 6. Deployment: strategy, health check, and automatic rollback trigger 7. A post-deploy smoke test that would catch a broken release 8. Notifications: what warrants alerting a human and what does not 9. Complete working configuration file 10. The failure mode this pipeline still does not protect against A pipeline that is green while production is broken is worse than no pipeline. Make the final verification test the deployed system, not the build output. Tone: operational and concrete. Provide working config.
Customise it for your task with the AI Prompt Generator.