Release vs deployment

A deployment puts a version of the code into an environment, such as staging or production, where it runs. A release makes a change available to users. The two can happen at the same moment or days apart: code can be deployed to production and stay switched off, and it is released when users are given access to it.

The longer version

Deployment is a technical event with a clear end. A build is copied to servers, started and checked, and the question it answers is whether this version is running in this environment. One build is deployed several times on its way out, to a test environment, to staging and then to production. Release is a product event. Its question is whether users can reach the new behaviour, and the answer can differ by user: staff today, one customer group tomorrow, everyone next week. A deployment is owned by engineering or operations. A release can be decided by a product owner, on a date that marketing, support and sales care about.

Where every deployment to production exposes everything in it, the two words describe one event and the distinction looks academic. It matters once something holds the new code back from users. A feature flag is one mechanism: the code path ships with the flag off, and turning the flag on is the release. A dark launch uses that hidden period to exercise the code under production load. A router or load balancer can do the same job at the infrastructure level, by keeping the new version out of the path of user traffic until someone switches it in. In each case the deployment has finished and the release has not started.

Keeping them apart changes what each one risks and how each is undone. A deployment that goes wrong is reversed by redeploying the previous build. A release that goes wrong is reversed by withdrawing access, which takes seconds and leaves the deployment in place. Testing splits along the same line. Deployment checks ask whether the build started, migrated its data and answers requests. Release checks ask whether the feature works for the people who now have it. The split also has a cost: the version deployed no longer says what users can see. A bug report from production then needs two facts where one used to do, which build was running and which features were switched on for the reporter.

The Scaled Agile Framework takes the same position. Its continuous deployment article says traditional practice treats deployment and release as the same activity, and that it is optimal to separate them so that changes move into production without affecting the behaviour of the current system. The benefit it names is being able to target specific customers and assess the impact of a change before all of them get it. Tools sometimes use release in a third sense. In Atlassian's Bamboo, a release is a snapshot of the artefacts from one build, with their metadata, which is then deployed to environments; there the order runs build, release, deployment, and the user-facing release comes later still. A release train is the opposite habit: releases leave on a fixed schedule, and whatever is not ready waits for the next one, which ties release to the calendar while deployment can stay continuous behind feature flags.

Common questions

What is the difference between a release and a deployment?

A deployment installs a build in an environment and starts it running. A release gives users access to a change. Deployment is about where the code is, and release is about who can use it. A team that hides new code behind a switch deploys first and releases later, as two separate steps.

Is deployment vs release only a matter of wording?

The words name one event on a team where every production deployment immediately exposes all of its changes to all users. Two events exist as soon as code can sit in production unused, behind a feature flag or outside the path of user traffic. From then on each has its own timing, its own owner and its own way of being reversed.

Can code be deployed without being released?

Code can be deployed without being released when something keeps users away from it. Three mechanisms do that: a feature flag that is off, an endpoint or page that nothing links to, and a new version of a service that receives no user traffic yet. The code runs in production and its behaviour stays invisible.

Who decides a release and who decides a deployment?

Deployment is an engineering decision, and on a team with an automated pipeline the pipeline makes it each time a change passes its checks. Release is a product decision about when users, or which users, get a feature, and it can wait for documentation, support training or an announcement date.

Why does separating release from deployment matter for a bug report?

Once release and deployment are separate, the build number alone no longer describes what a user saw. Two people on the same deployed version can have different features switched on. A useful report from production therefore records the version and the flags or rollout group that applied to the reporter, so the developer reproduces the right combination.

What is the difference between a build and a release?

A build is the compiled output of one version of the source code, the artefacts a pipeline produces. A release is what a team decides to ship: in deployment tools such as Atlassian's Bamboo it is a named snapshot of one build's artefacts ready to deploy, and in the product sense it is the moment users get the change.

Why decouple deployment from release?

Decoupling lets code reach production early and quietly, so the release becomes a separate, reversible decision. The Scaled Agile Framework names the gain: a team can expose a change to chosen customers and measure its effect before everyone gets it. A faulty feature can also be switched off in seconds without a new deployment.

What are the main deployment strategies?

Octopus names four: rolling deployment, which replaces instances in batches; blue-green deployment, which switches traffic between two identical environments; canary deployment, which sends a small share of traffic to the new version first; and feature flags, which deploy code switched off and release it separately.

Bug reports that arrive ready to triage.

Collect replay, console, network and browser context with the Free plan.

<script src="…/widget.js" data-key="pb_pub_…">