Running Pipelines Well in CI/CD
This section is about pipelines that stay good over time.
- Get told when a run fails, set quiet but quick alerts, and keep the runner bill small.
- Measure your delivery with the four DORA numbers.
- Share one pipeline template across many repos, with owners and automatic updates.
- Build the final project: a full pipeline that survives an incident gauntlet.
- Push it to a real starter repo for a live URL, and download your pipeline pack.
Lessons in this section
- After the Deploy
Tell the team when a run fails, set alerts that are quiet but quick, read debug logs, run on Windows when you must, and keep the runner bill small.
- Send a message when a run fails
- Put a link to the run in the message
- Set an alert that is quiet but quick
- Turn on debug logging
- Delivery Metrics
The four DORA numbers: deployment frequency, lead time, change failure rate and time to restore. Simulate a team's month, find the slowest part of lead time and move all four into the green.
- Name the four DORA metrics
- Find the biggest part of lead time
- Explain why small, frequent releases are safer
- Connect each metric to a pipeline practice
- Pipelines as a Product
Treat the pipeline as a product: call one shared template with inputs, give pipeline files owners with CODEOWNERS, and keep pinned versions fresh with Dependabot.
- Call a shared template with inputs
- Pin templates like actions
- Write CODEOWNERS rules for pipeline files
- Configure Dependabot for actions and packages
- Your Pipeline Pack
The capstone: fix a weak pipeline until it survives an incident gauntlet of bad pull requests, broken releases, a vulnerable image and an attacker, then push it to a real repo and download it as a pack.
- Build a full CI and CD pipeline from a weak start
- Pass every incident in the gauntlet
- Know which settings live outside the YAML
- Export a pipeline pack for a real project