Continuous Deployment: Shipping Every Merge Without Fear
What continuous deployment really requires: the difference from continuous delivery, the safety nets that make it work, and how to roll it out without betting production on it.

Continuous deployment means every change that passes the pipeline goes to production on its own, with no person pressing a release button. To teams that release once a fortnight after a long checklist, that sounds reckless. In practice it is usually the opposite: small changes, shipped one at a time, are easier to understand, easier to watch and easier to undo than a big batch on a Friday.
But continuous deployment is not a setting you switch on in your CI tool. It is what you earn once the pipeline, the tests and the production safety nets are good enough that a human approval step adds nothing. Here is what that takes, and how we help teams get there.
Continuous delivery or continuous deployment?
The two terms are often mixed up, and the difference is one step.
| Continuous delivery | Continuous deployment | |
|---|---|---|
| Every merge is built and tested | Yes | Yes |
| Every merge is ready to release | Yes | Yes |
| Release to production | A person decides when | Automatic, after the pipeline passes |
| Who catches problems | Pipeline, then a person, then monitoring | Pipeline, then monitoring and automated rollback |
Continuous delivery is a fine place to stop. Many regulated teams keep a manual approval on purpose, and that is a valid choice. Continuous deployment removes the button, which means everything the person at the button used to check has to be checked by the system instead.
What has to be true first
Before we remove the manual step for any service, we look for these:
- Trunk-based work. Short-lived branches merged to main often. Long-running branches turn every merge into a mini release, which defeats the point.
- A test suite you trust. If a green pipeline does not make the team confident, nobody will accept automatic releases. Flaky tests get fixed or deleted, not retried until green.
- One artifact, promoted. The image built from a commit is the exact image that runs in staging and production, pinned by digest. Nothing is rebuilt per environment.
- Configuration and infrastructure as code. Environment differences live in Git, so a deploy is a known diff and not a surprise.
- Monitoring that tells you about users. Error rates, latency and a few business signals per service, with alerts that someone actually reads.
- A rollback that has been practised. Not a wiki page, a command or a revert that the team has run recently.
If one of these is missing, that is the first project. Automating releases on top of a weak foundation just ships problems faster.
The shape of the pipeline
A typical continuous deployment pipeline for a containerised service looks like this:
- On pull request: build, unit tests, linting, security scanning of dependencies and the image. Fast enough that people wait for it.
- On merge to main: build the release image once, sign it, push it to the registry.
- Deploy to staging: automatically, then run smoke tests and integration tests against the real environment.
- Deploy to production: automatically, but gradually (more on that below).
- Verify: watch health and key metrics for a set window. Promote if they hold, roll back if they do not.
On Kubernetes we usually split this in two. CI (GitHub Actions or GitLab CI) builds, tests and publishes the image, then updates the image tag in a Git repository. A GitOps controller such as Argo CD or Flux sees the change and applies it. The cluster’s state is always what Git says, and a rollback is a revert.
Release gradually, decide automatically
The step that makes continuous deployment safe is not the test suite. It is how the new version meets real traffic.
- Canary releases. Send a small share of traffic to the new version, compare its error rate and latency with the old one, then step up. Argo Rollouts and Flagger can run the analysis and stop or reverse a rollout on their own.
- Blue-green deployments. Run the new version beside the old one and switch traffic in one move, with the old version still warm for an instant switch back.
- Feature flags. Deploy code with the new behaviour turned off, then enable it for internal users, then a few customers, then everyone. Deploying and releasing become two separate decisions.
Write the stop conditions down before the rollout starts: which metrics, which thresholds, over what window. A person reading dashboards at the end of the day will miss what an automated check catches every time.
The hard parts
Most teams get the pipeline working quickly. These are where they get stuck.
Database migrations. Code can roll back in seconds; a dropped column cannot. Use expand and contract: add the new structure first, deploy code that works with both old and new, migrate the data, and only remove the old structure in a later release. Every migration must be safe to run while the previous version of the application is still serving traffic.
Changes between services. If service A needs a new field from service B, ship B first with the field optional, then A. Backward compatible APIs are what let each service deploy on its own schedule.
Secrets and configuration. A config change can break production as easily as code. Put it through the same pipeline, the same review and the same gradual rollout.
Flaky tests. In a manual process, a flaky test is an annoyance. In continuous deployment, it either blocks every release or trains people to ignore red builds. Both are worse than not having the test.
What changes for the team
The technical work is half of it. The other half is habits:
- Changes get smaller, because small changes deploy and roll back cleanly.
- The person who merges owns the deploy, and watches it go out.
- Incidents point to one commit, not a release of fifty.
- Release meetings and change freezes become rare, because each change carries its own evidence.
On-call often gets quieter, not louder, because problems arrive one at a time and come with a clear suspect.
Where to start
You do not need to move every service at once. A practical path:
- Pick one low-risk service with good tests and clear metrics.
- Get it to continuous delivery first: every merge deployed to staging automatically, production one click away.
- Add a canary or blue-green rollout with automated checks, and run it with the manual approval still in place for a few weeks.
- When the approval step has stopped catching anything the automation did not, remove it.
- Write down what you learned, then repeat with the next service.
DoneDeploy builds CI/CD pipelines with GitHub Actions, GitLab CI and Argo CD, including progressive delivery and rollback that work when you need them. If you want to ship every merge without the nerves, book a free call and we will look at your pipeline with you.


