How do teams practise continuous delivery?
Martin Fowler's test is a simple one: a business sponsor could ask for the current development version to go to production at a moment's notice, and nobody would panic [1]. Teams get there by integrating continuously, building executables, running automated tests against them and pushing them through increasingly production-like environments. The mechanism that ties those steps together is the deployment pipeline [1]. In a typical setup, every merge produces a build that is tested first in a test environment and then in a staging copy of production, and going live is a single approved step.
How is continuous delivery different from continuous deployment?
With continuous deployment, every change goes to production automatically, often several times a day. With continuous delivery the team is able to deploy that often but may choose not to, frequently because the business prefers a slower release cadence. You need continuous delivery before you can do continuous deployment [1]. Continuous integration, meanwhile, covers integrating, building and testing code in the development environment; continuous delivery extends it through the final steps into production [1].
What does continuous delivery depend on?
DORA defines continuous delivery as the ability to release changes of all kinds on demand quickly, safely and sustainably [2]. The practices it lists as drivers include reliable test automation, deployment automation with no manual intervention, trunk-based development with short-lived branches, loosely coupled teams and architecture, and version control for every production artifact, configuration and scripts included [2]. The outcomes DORA reports include better delivery performance, less rework and unplanned work, lower burnout and less deployment pain [2].