CI/CD
From commit to production, safely and often.
How teams ship many times a day without breaking things: version control and branching, pipelines and runners, builds and caching, automated tests, quality gates, artifacts and container images, environments, infrastructure pipelines, release strategies, feature flags, database migrations, rollbacks, pipeline secrets and supply-chain security, and the DORA measures of delivery. Vendor-neutral: GitHub Actions, GitLab CI/CD, Jenkins, Azure Pipelines, CircleCI, Buildkite, AWS, Google Cloud and Tekton side by side. By the end you can design a pipeline, read one critically and predict what it will let through.
- 6
- chapters
- 21
- modules
- ~9h
- of learning
- 21
- live now
Take modules in any order. The route suggests one that builds up naturally.
has a live module in progress complete
Take a look inside
The big picture, before the details
One change, from a small commit to its first users, with the guard rails along the way. Watch the tour, or click any part.
A small commit: a short-lived branch and a pull request, merged into main at least daily (module 2).
A taste of module 13: release a buggy version five ways and see how many requests fail.
Recreate: 52,000 failed requests · back on v1 at 12 min
The big picture
Why teams integrate and release continuously, and what a pipeline is.
3 modules · 70 min
Beginner
Why CI/CD
From a scary release weekend to small changes shipped every day.
Beginner
Version control and branching
Long-lived branches, GitFlow and trunk-based development, compared.
Core
A pipeline, taken apart
Triggers, stages, jobs, steps, runners and artifacts.
Continuous integration
Build, test and check every change within minutes.
4 modules · 95 min
Core
Reproducible builds and caching
Lockfiles, pinned versions and caches that make builds fast and repeatable.
Core
Automated tests
Unit, integration and end-to-end tests, and the flaky ones.
Core
Fast feedback
Parallel jobs, test splitting and only running what changed.
Core
Quality gates and merge rules
Linters, static analysis, required reviews, branch protection and merge queues.
Artifacts and environments
Build once, then promote the same thing towards production.
4 modules · 95 min
Core
Artifacts and versioning
Build once, deploy many; semantic versions, registries and immutability.
Core
Building container images
Layers, multi-stage builds, tags and digests.
Core
Environments and promotion
Dev, staging, production and preview environments, and what differs between them.
Core
Infrastructure in the pipeline
Plan in the pull request, apply on merge, catch drift.
Releasing safely
Get changes to users without taking the system down.
5 modules · 115 min
Core
Continuous delivery and deployment
Always releasable, and when to let the pipeline go all the way.
Core
Release strategies
Recreate, rolling, blue-green, canary and shadow releases.
Core
Feature flags
Deploy code switched off, then release it gradually, separately from deploying.
Deep dive
Database changes without downtime
Expand and contract: changing a schema while old and new code both run.
Core
Rollback and roll forward
Undo a bad release fast, automatically where you can.
Securing the pipeline
The pipeline holds the keys to production; protect it like production.
2 modules · 55 min
In practice
Measure delivery, choose a platform, put it all together.
3 modules · 85 min
Core
Measuring delivery
The DORA measures: throughput and stability together.
Applied
CI/CD platforms compared
GitHub Actions, GitLab, Jenkins, Azure Pipelines, CircleCI, Buildkite and the clouds' own.
Applied
Capstone: a pipeline for a payments app
Design the pipeline, then see what it lets through.