What Is Continuous Delivery in DevOps?
Continuous delivery in DevOps means every change is built, tested and ready to release at any time, so shipping is a small decision instead of a big event.
On this page
Short answer
Continuous delivery in DevOps means every change is built, tested and kept ready to release at any time, so shipping becomes a small decision instead of a big event. The team does not ask whether the code is ready; the pipeline proves it on every commit. The release itself is a separate, low-risk step that a person or a schedule triggers when the business is ready.
What is continuous delivery in DevOps?
Continuous delivery is a DevOps practice in which every change to the code is built, tested and kept in a releasable state, so the team can ship at any time with a small, low-risk step. It is not the same as shipping on every commit: that is continuous deployment, where the release is automatic. In continuous delivery, a person or a schedule decides when to release, but the code is always ready.
| Practice | What happens on each commit | Who releases |
|---|---|---|
| Continuous integration | Code is merged and tested | Nobody yet |
| Continuous delivery | Code is built, tested, ready | A person or schedule |
| Continuous deployment | Code is built, tested, shipped | The pipeline |
Delivery sits on top of integration. Without reliable integration, there is nothing to deliver, which is why the integration side is covered in continuous integration in DevOps.
The tooling that runs the pipeline is covered in continuous delivery tools.
How does a continuous delivery pipeline work?
A continuous delivery pipeline works by moving every commit through the same stages in the same order, so the result is predictable: build, test, package, stage and approve. A commit that fails any stage stops there, and the team fixes it before it moves on.
- Build. The code is compiled and packaged into a versioned artifact.
- Test. Unit, integration and acceptance tests run automatically.
- Package. The artifact is stored with its version and test results.
- Stage. The artifact is deployed to a staging environment that mirrors production.
- Approve. A person or a rule checks the result and releases it.
The staging environment is the key part. If staging does not match production, the tests prove nothing, and the release fails in the place that matters. Keeping staging close to production is the most valuable work in the pipeline. The testing side is covered in continuous testing.
Which deployment strategy fits your release?
The deployment strategy decides how a release reaches users, and the right one depends on how much risk the change carries and how fast you must be able to undo it. Three strategies cover most releases.
- Blue-green. Two identical environments take turns. The new version runs in the idle one, checks pass, then traffic switches over. Rollback is a switch back.
- Canary. The new version goes to a small share of users first, such as 5 percent. If the metrics stay good, the share grows.
- Rolling. Servers are replaced one group at a time, so the old and new versions run side by side during the release.
Canary is the safest for risky changes, because a bad release only reaches a few users before it is stopped. Blue-green is the fastest to undo, because the old environment is still running. Rolling is the simplest when servers are identical and the change is small. Most teams use canary for big changes and rolling for routine ones.
What quality gates and rollbacks do you need?
Quality gates are the checks a release must pass before it goes live, and rollback is the plan for undoing it when it fails. Both must be built into the pipeline, not added after a bad release.
Useful gates are automated tests, a security scan, a check that the change is behind a feature flag, and a sign-off from the team that owns the service. Each gate must have a clear pass and fail, so the pipeline decides the same way every time. The DevOps setup around this is covered in how to implement DevOps.
Rollback needs the same care. A release that cannot be undone is a release that stays broken until it is fixed. Keep the old version running until the new one proves itself, keep the database change backwards compatible, and write the rollback steps before the release, not during the incident.
How do you measure whether delivery is working?
You measure continuous delivery by how often you release, how long a change takes to reach users, how often releases fail, and how fast you recover. These four numbers tell you whether delivery is improving or just moving faster.
- Release frequency. How often the team ships to production.
- Lead time. How long a commit takes to reach users.
- Change failure rate. The share of releases that cause a problem.
- Recovery time. How long it takes to restore service after a bad release.
The trap is chasing frequency alone. A team that ships ten times a day with a high failure rate is not delivering well; it is just failing faster. Frequency should rise while the failure rate stays flat or falls, and recovery time should shrink. If those two do not move together, the pipeline needs work, not more releases.
Example: a team moves from monthly to weekly releases
Example (hypothetical): a team ships once a month, and each release takes 2 hours of manual work plus a weekend of fixes. It moves to continuous delivery, and after three months it ships 4 times a month, with each release taking 30 minutes of mostly automated work.
The old way cost 2 hours a month for the release itself, while the new way costs 4 times 30 minutes, which is 2 hours a month. The hours look the same, but the fixes change: the old way needed a weekend of fixes each month, about 8 hours, while the new way needs about 1 hour of fixes a month, because each release is small and the bad ones are caught early.
That saves about 7 hours a month, and the team ships four times as often. Each release is small and the bad ones are caught early, so the fix time falls even though the release count rises.
The arithmetic shows the real gain is not the release time, it is the fix time. Small releases fail small, so they are cheap to fix. The pipeline work is covered by how to set up CI/CD.
What are the common mistakes?
The most common continuous delivery mistakes are automating a broken process, skipping the staging environment, and shipping without a rollback plan.
- Automating a broken process. A pipeline that ships bad code faster is worse, not better.
- Skipping staging. Tests that run somewhere unlike production prove little.
- No rollback plan. A release that cannot be undone stays broken.
- Gates nobody trusts. If the team ignores the checks, they are decoration.
- Chasing frequency alone. More releases with more failures is not delivery.
Key takeaways
- Every change is built, tested and kept ready to release at any time
- Delivery is a decision to ship; deployment is automatic shipping
- Canary releases limit a bad change to a few users; blue-green is fastest to undo
- Track failure rate and recovery time, not just release frequency
- Small releases fail small, so they are cheap to fix
Frequently asked questions
What is the difference between continuous delivery and continuous deployment?
Continuous delivery keeps every change ready to release, and a person or schedule decides when to ship. Continuous deployment ships every change automatically once the tests pass. Delivery gives the business control over timing; deployment gives up that control for speed.
Do I need continuous integration before continuous delivery?
Yes. Continuous integration merges and tests code on every commit, and delivery builds on that result. Without reliable integration there is nothing trustworthy to deliver, so the pipeline starts with integration and adds delivery stages on top.
What is a canary release?
A canary release sends the new version to a small share of users first, such as 5 percent, and watches the metrics. If the metrics stay good, the share grows. If they worsen, the release stops and the old version keeps serving everyone.
How is blue-green different from canary?
Blue-green runs two identical environments and switches all traffic at once, so rollback is a switch back. Canary sends the new version to a small share of users first and grows it. Blue-green is faster to undo; canary is safer for risky changes.
What is a quality gate?
A quality gate is a check a release must pass before it goes live, such as automated tests, a security scan or a sign-off. Each gate has a clear pass and fail, so the pipeline decides the same way every time and a bad release stops before users see it.
How often should a team release?
As often as the pipeline and the business allow, provided the failure rate stays flat and recovery stays fast. Weekly is a good first target for a team moving from monthly releases. The right pace is the one where releases are small, safe and boring.