You've lived through deploy Friday: three weeks of changes bundled together, a merge full of conflicts, someone uploading files over FTP, and the whole weekend on call. CI/CD exists so that deploying stops being an event and becomes routine: small, frequent and boring.
This article untangles the concepts (people mix them up all the time), walks through a real pipeline, the deploy strategies, the metrics that matter and the security precautions that became mandatory after 2025. I checked the facts on November 21, 2026.

CI: Integrate Small and Often
Martin Fowler, who popularized the term, revised his classic article on continuous integration in January 2024. The definition is about behavior: each member of the team merges their changes into the codebase, together with their colleagues' changes, at least daily.
Two consequences that surprise people:
- CI isn't the tool. Fowler warns that "we shouldn't confuse a tool for the practice." Running tests on GitHub Actions against branches that live for three weeks isn't continuous integration; he calls it "semi-integration."
- CI and long-lived feature branches are opposite approaches. The exception is a branch that lives less than a day, just for code review.
What the practice asks for, summing up the article's 11 sections: everything under version control, an automated self-testing build, everyone integrating every day, every integration triggering a build, broken builds fixed immediately, and a fast build.
Think of a restaurant kitchen that washes dishes while it cooks. Whoever lets them pile up spends the end of the shift in a scrubbing marathon. A three-week branch is the pile of dirty dishes.
That explains the popularity of trunk-based development: everyone works on a single trunk, with short branches only for review. And GitFlow's own creator, Vincent Driessen, added a note to the original post in 2020: "If your team is doing continuous delivery of software, I would suggest to adopt a much simpler workflow (like GitHub flow) instead of trying to shoehorn git-flow into your team."
Continuous Delivery and Continuous Deployment
Both terms share the "CD" acronym, and the difference is a button.
| Continuous delivery | Continuous deployment | |
|---|---|---|
| What it guarantees | The software can go to production at any time | Every change that passes the pipeline goes to production on its own |
| Who picks the moment | The team or the business | The pipeline |
| Prerequisite | A reliable test pipeline | Working continuous delivery |
A picture helps: with continuous delivery, the plane is fueled and inspected at the gate, and the tower decides when it takes off. With continuous deployment, it takes off as soon as the checklist is done.
The central concept, from the book Continuous Delivery by Jez Humble and David Farley (2010), is the deployment pipeline: each commit becomes a package that moves through increasingly broad verification stages.
The first stage (build, unit tests, lint) should take a few minutes, so developers get feedback while they still remember what they did. The slower ones (integration, E2ETest that opens the app in a real browser and replays a user path, from the click to the server response, to check the whole flow works., performance) come later.
A Real Pipeline
GitHub's official Node example, updated to current versions:
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read # the minimum; each job asks for more if it needs it
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v7
with:
node-version: '24.x'
cache: 'npm' # reuses dependencies across runs
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm run buildTo test against several versions at once, matrix creates one job per combination:
strategy:
matrix:
node-version: ['22.x', '24.x']This portfolio, for example, uses Azure Pipelines: build, tests and a Docker image on every push to main, and the deploy only happens if everything passed. With Docker, the same package tested in CI is the one that runs in production.
Deploy Strategies
Getting the new version live without taking anything down, and with an easy way back.
Rolling Update
The Kubernetes default: old instances are replaced by new ones gradually. By default, up to 25% can be unavailable and up to 25% extra can be created during the swap.
spec:
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%If it goes wrong, kubectl rollout undo goes back to the previous version.
Blue-green
Two identical production environments. One is live (blue), the other gets the new version (green). Once it's tested, the router switches the traffic. If something goes wrong, you switch it back.
The catch is the database, since there's only one. Fowler's advice: "The trick is to separate the deployment of schema changes from application upgrades." First a schema that works with both versions, then the new version.
Canary
The name comes from the canary miners used to carry to detect gas. The new version goes to a small slice of users first, and the team watches the metrics before releasing it to everyone.
Canary requires observability: without per-version metrics, there's no way to know whether the canary is fine.
Feature Flags
The technique that changes the game the most. New code goes to production turned off, and the feature is turned on later, through configuration, for some users or for everyone.
if (await flags.getBooleanValue('new-checkout', false, { userId })) {
return newCheckout(order);
}
return currentCheckout(order);This separates deploy (the code is there) from release (the user sees it). It's also what makes trunk-based development possible: unfinished code goes into the trunk, protected by the flag. OpenFeature, a CNCF project, offers a standard APIContract that defines how one program asks another for data or actions: which endpoints to call, what to send and what comes back. On the web, usually HTTP with JSON. so you don't get locked into a vendor.
Pete Hodgson's warning, in the reference article on the subject: "Feature FlagsConfigurable switch that turns a feature on or off without shipping new code, so you can roll out gradually, test with a group or roll back fast. have a tendency to multiply rapidly." Treat each one as debt, with a removal date.
The DORA Metrics
The DORA research program has spent more than ten years studying what sets high-performing delivery teams apart. The most cited finding, from 2015: the research "debunked the myth that speed comes at the expense of stability." The teams that ship faster also break less.
The five current metrics:
| Group | Metric | What it measures |
|---|---|---|
| Throughput | Change lead time | From commit to production |
| Throughput | Deployment frequency | How many deploys per period |
| Throughput | Failed deployment recovery time | How long it takes to recover |
| Instability | Change fail rate | Share of deploys that need a rollback or hotfix |
| Instability | Deployment rework rate | Share of unplanned deploys, caused by an incident |
The fifth metric was added in 2024. And a detail that often gets repeated wrong: reliability isn't the "fifth metric"; DORA itself says the 2021 report was mistaken in calling it that.
In the 2025 report, with almost 5,000 professionals, 16.2% said they deploy on demand, several times a day, and 31.5% between once a week and once a month. The report recommends comparing your service with itself over time, not with other companies.
Pipeline Security
The pipeline holds the production keys, which makes it a target. In March 2025, the tj-actions/changed-files action, used by thousands of repositories, was compromised: its version tags were pointed to a malicious commit that printed secrets into the logs. CISA issued an alert, and the guidance was to rotate anything that might have leaked.
The defenses, all from GitHub's documentation:
- Pin actions by SHA, not by tag:
uses: some/action@8f4b7f8.... Since October 2026, GitHub also offers the workflow lockfile (actions.lock), which the documentation describes as the strongest protection available. - Least privilege for
GITHUB_TOKEN: read-only by default, and each job asks for what it needs. - OIDC instead of long-lived secrets: instead of storing a cloud key as a secret, the pipeline gets a token that's valid only for that job.
permissions:
id-token: write # required to request the OIDC token
contents: readThe article on npm supply chain attacks digs into the other side of the same problem: the dependencies the pipeline installs.
What It Costs
| Tool | Free plan (private repository) |
|---|---|
| GitHub Actions | $12 a month in included usage (about 2,000 standard Linux minutes); free for public repositories |
| GitLab CI | 400 minutes a month |
| Azure Pipelines | 1 parallel job, 1,800 minutes a month (you have to enable it by linking an Azure subscription) |
| CircleCI | 30,000 credits a month |
| Jenkins | Open source, you host it |
Since January 2026, GitHub expresses included usage in dollars, not minutes. Self-hosted runners don't consume that balance, and the fee announced for them has been postponed with no new date so far.
And for Kubernetes users there's the GitOps model, with tools like Argo CD: the desired state lives in Git, and an agent in the cluster pulls and reconciles on its own, instead of the pipeline pushing the deploy.

Quick check
Frequently Asked Questions
Do I need Kubernetes to do CD?
No. The deployment pipeline idea predates Kubernetes and works for anything, from web apps to firmware. A server with Docker and a deploy script is already enough for continuous delivery.
How many tests do I need to get started?
Enough to trust that the core hasn't broken. Start with tests for the critical flows and a build that fails loudly. The back-end testing guide helps you choose.
Is deploying on Friday forbidden?
If each deploy is small, tested and easy to roll back, Friday is just another day. If the deploy is big and risky, the day isn't the problem.
Roll back or fix forward?
Both are valid. Rolling back is faster when the strategy allows it (canary, blue-green). Fixing forward is the way out when the change touched data that won't revert on its own.
GitHub Actions, GitLab CI or Azure Pipelines?
Use the one that lives next to your code. The concepts in this article apply to all of them.
References
Checked on November 21, 2026:
- Martin Fowler, Continuous Integration (2024 revision), Continuous Delivery and Blue Green Deployment; Danilo Sato, Canary Release; Pete Hodgson, Feature Toggles
- continuousdelivery.com and deployment pipeline; trunkbaseddevelopment.com; Vincent Driessen, A successful Git branching model
- DORA, metrics, history of the metrics and 2025 report
- Kubernetes, Deployments; OpenFeature; Argo CD; OpenGitOps
- GitHub, Node.js on Actions, secure use, OIDC, workflow lockfile, caching and billing
- CISA, tj-actions/changed-files compromise
- GitLab, Azure Pipelines, CircleCI, Jenkins