Imagine ten people editing the same document in separate copies for a month, then trying to paste all their edits together the night before it’s due. That merge nightmare has a name in software — “integration hell” — and it’s exactly what teams lived through before CI/CD. The whole point of CI/CD is to turn shipping software from a scary, all-hands, once-a-quarter event into a boring, routine, several-times-a-day non-event.
So what is CI/CD? It stands for Continuous Integration and Continuous Delivery/Deployment, and it’s the practice (plus the automation) of merging, testing, and shipping code changes in small, frequent, mostly-automatic steps. This guide explains each piece precisely — including the one distinction almost everyone gets wrong — and, since this is a Measure topic, how you actually measure whether your CI/CD is any good.

First, a Crucial Framing: CI/CD Is a Practice, Not a Tool
Before the acronyms: CI/CD is a discipline, not a product you install. GitHub Actions, GitLab CI, Jenkins, and CircleCI are tools that enable it, but a team can own all of them and still not be “doing CI/CD” if they aren’t actually integrating and shipping continuously. Keep that in mind — the tools are the easy part; the habits are the point.
Continuous Integration (CI): The Foundation
Continuous Integration is the practice of every developer merging their changes into a shared main codebase frequently — at least daily — where each merge is automatically verified by a build and a test run.
Three habits make it real:
- Merge to the shared mainline often. No change sits off on its own for more than a day or so. Small, frequent merges mean small, easy-to-resolve conflicts — the opposite of “integration hell.”
- Every push triggers an automated build and test. The moment code lands, a machine compiles it and runs the test suite, with zero manual steps. If it can’t fail on its own, it isn’t CI.
- A broken build gets fixed immediately. As the saying goes, nobody has a higher-priority task than fixing a red build, because a broken mainline blocks the whole team.
CI is the foundation everything else stacks on: you can’t deliver or deploy continuously if you can’t integrate continuously.
Continuous Delivery vs. Continuous Deployment (the Part Everyone Muddles)
Here’s the distinction that even experienced people blur — and getting it right is the mark of someone who actually understands this. Both build on CI and add automation past the test stage. The difference is simply where the automation stops.

- Continuous Delivery means every change that passes the pipeline is automatically built, tested, and prepared so that it’s always in a releasable state — but actually pushing it to production is a deliberate, push-button human decision. You can release at any moment; you choose when. There’s a manual gate before production.
- Continuous Deployment removes that gate entirely. Every change that passes all the automated checks is released to production automatically, with no human in the loop — often many times a day.
The clean way to remember it (from Martin Fowler, who defined these): to do Continuous Deployment, you must already be doing Continuous Delivery. Delivery is the capability (always ready to ship); Deployment is the choice to remove the human release button. A regulated bank might deliberately run Continuous Delivery so an auditor signs off before release; a consumer web app might run Continuous Deployment and ship dozens of times a day. Same pipeline — one gate open or closed. That’s the entire difference.
The Pipeline: The Automated Assembly Line
A CI/CD pipeline is the automated assembly line a change travels through on its way to production. A common shape:

build → test → scan → package → deploy
- Build — compile the code and produce the artifacts.
- Test — run the automated tests (fast unit tests first, then integration tests).
- Scan — check for security vulnerabilities, risky dependencies, and accidentally-committed secrets.
- Package — build a container image, tag it (usually with the exact Git commit ID for traceability), and push it to a registry.
- Deploy — roll that image out to an environment (dev → staging → production), often with safety strategies and automatic rollback if something goes wrong.
Notice how neatly containers fit: the pipeline builds one immutable image and then promotes that exact same image through every environment. The image is the hand-off artifact between the “CI” and “CD” halves — build once, ship the identical thing everywhere. It’s why containers and CI/CD grew up together.
The Tools (and Why There’s No Single “Best”)
You’ll run your pipeline on a CI/CD platform. The main ones, kept vendor-neutral:
- GitHub Actions — built into GitHub; the broadest ecosystem, great if your code already lives there.
- GitLab CI/CD — built into GitLab across all tiers, with a built-in registry; strong for an all-in-one, self-hosted, compliance-friendly setup.
- Jenkins — the open-source veteran you host yourself; maximum flexibility and plugins, at the cost of running the infrastructure.
- CircleCI — a cloud-first option known for fast, heavily parallel test runs.
There’s no universal winner — pick by fit (what you already use, whether you self-host, how big your test suite is). And remember the framing: these are just the machines that run the practice.
How to Measure CI/CD: The DORA Metrics
This is the part that makes CI/CD a Measure topic. How do you know your delivery is actually good? For over a decade, the DORA research program (DevOps Research and Assessment, now at Google) has provided the industry-standard answer — a small set of metrics often called the “four keys”:

- Deployment Frequency — how often you ship to production.
- Lead Time for Changes — how long from a commit to it running in production.
- Change Failure Rate — what share of deployments cause a failure that needs fixing.
- Failed Deployment Recovery Time — how fast you recover when one does. (This was previously called “Time to Restore Service” or MTTR — the name was updated, so don’t be thrown by older articles.)
The first two measure speed; the last two measure stability. And here’s DORA’s most important, repeatedly-confirmed finding: speed and stability are not a trade-off. The elite teams score well on all four at once — precisely because small, frequently-integrated, automatically-tested changes are both easier to ship and easier to undo. (DORA has since added a fifth metric, Deployment Rework Rate, so newer material may say “five.” We go deeper on using these metrics well — especially in the age of AI coding agents — in DORA metrics for AI coding agents.)
CI/CD and AI
CI/CD is quietly becoming the backbone of shipping AI, not just apps. MLOps is essentially DevOps for models: the same build → test → scan → package → deploy loop, with extra stages for validating data, training, and evaluating the model against a benchmark before it’s packaged as a serving container and deployed. A related practice, GitOps, makes Git the single source of truth for what should be running, with a tool in the cluster continuously reconciling reality to match — the same self-healing idea behind Kubernetes.
And as AI coding agents open more and more pull requests, a solid CI/CD pipeline becomes the safety rail that catches the regressions machines can introduce at machine speed. Strong CI/CD is what keeps rising agent velocity from turning into rising incident velocity. (Just keep it honest: training a model involves real extra steps — it isn’t “just git push.”)
❓ Frequently Asked Questions
What does CI/CD stand for? CI stands for Continuous Integration; CD stands for either Continuous Delivery or Continuous Deployment. Together they describe the practice of integrating, testing, and shipping code changes in small, frequent, largely-automated steps rather than big risky manual releases.
What’s the difference between Continuous Delivery and Continuous Deployment? Continuous Delivery keeps every change automatically tested and in a releasable state, but the final push to production is a deliberate human decision (there’s a manual gate). Continuous Deployment removes that gate — every change that passes all automated checks is released to production automatically. To do Deployment, you must already be doing Delivery.
Is CI/CD a tool? No — CI/CD is a practice or discipline, not a product. Tools like GitHub Actions, GitLab CI, Jenkins, and CircleCI enable CI/CD, but a team can have the tools and still not practice CI/CD if they aren’t integrating and shipping continuously.
What is a CI/CD pipeline? A pipeline is the automated sequence a code change travels through: typically build, test, security scan, package (often into a container image pushed to a registry), and deploy. It turns “get this change safely to production” into a repeatable, automated assembly line.
How do you measure if CI/CD is working? The standard answer is the DORA metrics: deployment frequency and lead time for changes (speed), plus change failure rate and failed deployment recovery time (stability). The best teams excel at all of them at once, because small automated changes are both faster to ship and easier to recover from.
📚 Keep Learning
- DORA Metrics for AI Coding Agents — using the four keys well, especially with AI in the loop.
- Container Registries Explained — where the pipeline’s images live.
- How to Deploy a Container to the Cloud — the “deploy” end of the pipeline.
📚 Recommended Resources
Disclosure: some links below are Amazon affiliate links. If you buy through them, I earn a small commission — at no extra cost to you — which helps keep this site running.
The DevOps Handbook (2nd Edition)
Gene Kim, Jez Humble, Patrick Debois & John Willis · Book · ~$25 on Amazon
The definitive practical guide to the practices in this article — continuous integration and delivery, automated pipelines, and the measurement discipline (including the DORA metrics) that tells you whether it’s working. If you want to go from “I understand CI/CD” to “I can build it,” this is the book.
The Phoenix Project
Gene Kim, Kevin Behr & George Spafford · Book · ~$20 on Amazon
The story version — a page-turning novel about an IT team escaping exactly the “integration hell” this article opens with. The most enjoyable way to feel why CI/CD matters before you dive into the how.