Skip to content

Continuous delivery

Continuous delivery is the practice of keeping software in a deployable state at all times, so every change can reach production safely with a single click.

Definition

What it is

Continuous delivery (CD) is a software engineering discipline in which the main branch of a repository is always in a state that could be deployed to production at any moment. The word "delivery" is deliberate: it stops short of "deployment", which is the decision to push a release to end users. CD guarantees the artifact is ready; deployment is a separate, often business-driven, decision.

The distinction matters because teams often conflate the two. A team that practices continuous delivery can deploy twenty times a day or twice a quarter — the discipline is about readiness, not frequency. What CD removes is the multi-week "release hardening" phase where features sit on a staging branch while engineers chase regressions that only appear in production.

Why it matters

The economic argument is simple: the longer a change waits between commit and production, the more expensive it is to fix when it breaks. A bug caught by an automated test thirty seconds after a commit costs minutes of engineer time. The same bug caught in a quarterly release cycle costs days of triage, rollback planning and incident review — and it erodes trust between engineering and the business.

How it works

graph LR
  A[Commit] --> B[Build]
  B --> C[Unit tests]
  C --> D[Integration tests]
  D --> E[Package artifact]
  E --> F[Deploy to staging]
  F --> G[Acceptance tests]
  G --> H[Ready to deploy]

The pipeline is the mechanism. Each stage acts as a filter: if a test fails, the artifact never reaches the next gate, and the team is notified within minutes. The output of a successful pipeline is not a passing build — it is a deployable artifact with a version number, a changelog and a traceable origin commit.

What separates continuous delivery from continuous integration is the last mile. CI merges and tests code. CD adds packaging, environment promotion and deployment automation that make the artifact releasable.

Dimension

CI only

Continuous delivery

Trigger

Every push

Every push

Output

Test report

Deployable artifact

Environments

One (build agent)

Staging + production-ready

Rollback

Manual

Automated or one-click

Deployment frequency

Weekly to monthly

On demand

Common failures

Origin

Continuous Delivery is the ability to get changes of all types — including new features, configuration changes, bug fixes and experiments — into production, or into the hands of users, safely and quickly in a sustainable way.

— Jez Humble & David Farley, *Continuous Delivery*, 2010

The book Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation (Addison-Wesley, 2010) named the discipline. Before it, teams spoke of "deployment pipelines" and "build pipelines" but lacked a shared vocabulary for the readiness guarantee. Martin Fowler's bliki entry on Continuous Delivery (2013) popularized the concept outside the enterprise consulting world.

Evidence

FAQ

Is continuous delivery the same as continuous deployment?

No. Continuous delivery guarantees every commit is deployable. Continuous deployment goes further and deploys every passing commit to production without human intervention. CD is a prerequisite for continuous deployment, not the other way around.

Does CD require Kubernetes or a cloud provider?

No. CD is a discipline, not a stack. You can practice continuous delivery with a single Linux server, a Makefile and a deployment script. The tools matter less than the readiness guarantee.

How do you handle database migrations in a CD pipeline?

Migrations must be backward-compatible and decoupled from code deploys: add the new column, deploy the code that reads it, backfill, then remove the old column. Every migration step must be reversible or idempotent.

What is the minimum viable CD pipeline?

One branch, automated tests on every push, a versioned artifact, a staging environment that receives every passing build, and a one-click deploy to production. That is enough to start.

How does CD relate to DevOps and SRE?

CD is a practice. DevOps is a cultural and organizational movement that includes CD. SRE is a reliability discipline that consumes the artifacts CD produces. They overlap but are not synonyms.

Connections

Continuous ddevopsContinuouscontinuoustrunk-basefeature-fldeploymentRollback

● broader ● narrower ● related

Broader

  • devops

Related

Continuous delivery is the practice layer between continuous integration (which merges and tests) and continuous deployment (which pushes to users). Its prerequisites — trunk-based development, feature flags, infrastructure as code — form a stack that must be adopted together.

Used in the garden

Sources

Etymology

Origin: compound

  • continuous (adjective): from Latin continuus, "hanging together, uninterrupted", from continere (com- "together" + tenere "to hold")
  • delivery (noun): from Old French delivrer, from Latin de-liberare "to set free", from de- "away" + liberare "to free"

Semantic network

Continuous ddevopsContinuouscontinuoustrunk-basefeature-fldeploymentRollback

● broader ● narrower ● related

Broader

  • devops

Related

Used in the garden

Sources