Sign in
← CI/CD
10 min · intro · Lesson 1 of 7

What CI/CD is and why

What pain CI/CD solves: manual deploys, "it works on my machine", integration hell. What the letters stand for.

Why

Picture a team with no automation. Five developers spend a week writing code on their own branches. On Friday everyone merges into one branch, and then:

Every release becomes stressful and eats an evening. The longer code lives unmerged from the main branch, the more painful the integration. CI/CD solves this by merging changes often and letting automation handle checks and deploys.

What the letters mean

CI (Continuous Integration). Every developer merges their changes into the shared branch often (several times a day), and automation runs a build and tests on every change. If you broke something, you find out in minutes, not in a week.

CD stands for two different things, and it's important not to mix them up:

Deployment is impossible without Delivery: to deploy automatically, you first need to be able to ship at any moment. The difference between the two gets its own lesson because it's a common interview question.

How it works

A pipeline usually runs roughly this chain on every change:

commit -> build -> lint -> test -> package the artifact -> deploy

These used to be manual steps that people forgot or did differently each time. Now they're described as code, live in the repository, and run the same way every time.

A few words you'll meet in every CI tool:

The order of steps matters. The pipeline stops on the first job that fails, and everything after it never runs. If packaging comes after tests, broken code simply never turns into an artifact and never travels further.

What changes in your work

You see breakage right away: tests fail on push, and you find out within a minute instead of a week later, when it's no longer clear where things broke. Releases get smaller: shipping 10 lines is safer than shipping 10,000 accumulated over a month. Deploy becomes a routine button that anyone on the team can press, not just the one senior engineer who knows how. A machine never forgets a step and never confuses prod with staging.

DORA metrics

How do you know a team's delivery is good? The DORA research program has measured this with the same metrics for years. The classic set, the one that comes up in interviews, has four:

The metrics have been revised. In 2023 MTTR was renamed Failed Deployment Recovery Time: now it measures recovery specifically after a failed deploy, not after any failure. In 2024 a fifth metric was added, Deployment Rework Rate: the share of unplanned deploys that had to happen because of a prod incident. DORA's site now lists five metrics, named: Change Lead Time, Deployment Frequency, Failed Deployment Recovery Time, Change Fail Rate, Deployment Rework Rate.

The first two show speed, the rest show stability. A good team ships often while rarely breaking prod.

Common mistakes

What they'll ask you in an interview

Short answers you should be able to give:

What you'll need for the tasks

In the next lesson we'll dig into CI in detail: what runs on every push and why a "green main" is a team rule.

Done reading?

Mark the lesson as read to move your track progress forward.

Go through it with an AI agent

The agent explains anything unclear in plain words, gives you 2 labs for this lesson and drills you on interview questions. $49 one-time, lifetime access.

Get access for $49

Tell the agent: use MCP izi, give me lesson cicd-basics-01-what-is-cicd