Cloud and DevOps · Chapter 6
CI pipelines: from push to green
About this chapter
Getting a change into production by hand is slow and easy to get wrong. This chapter separates continuous integration, delivery and deployment, then reads a real pipeline for a small API: triggers, jobs, steps and runners, the order jobs depend on one another, caching dependencies, passing files between jobs, limiting concurrent runs, and why the quick, cheap checks should run before the slow ones.
Who it is for: Developers and DevOps beginners who have used a CI service but want to read and design a pipeline, and to explain it in an interview.
You will be able to
- Explain the difference between continuous integration, continuous delivery and continuous deployment.
- Describe how jobs, steps and runners relate, and why every job starts from a clean machine.
- Say which jobs depend on which, so that jobs that do not need each other can run at the same time.
- Add a dependency cache and explain what it saves.
- Decide which checks run first, and which run later or only on certain events.
The key idea: A pipeline exists to tell the author quickly whether a change is safe. The order of the jobs, the caches and the cheap checks that run first all serve that one purpose: a trustworthy answer sooner.
In this chapter
- How this chapter was checked
- Three different things behind one slash
- Why automate
- The anatomy of a pipeline
- A pipeline stage by stage
- Triggers: what starts a run
- Jobs, steps and runners
- Caching dependencies
- Testing in CI: what runs, and when
- Mistakes that recur
Locked: needs a plan
You can read chapter 1 free. Chapter 6 is the next one.
What you can do now, free: re-read chapter 1 and try its problems.
What a plan gives you: all chapters of the track you pick and their checks. Professional, one role is ₹329 a month or ₹2,299 a year. It renews until you cancel, and you can cancel any time. Paid plans open at launch.
Why is this locked?
Chapter 1 of every track is free, so you can see how the track reads. The rest of a track and its checks come with a plan, or open as you pass each chapter's check.
The price is for one period, a month or a year. A plan renews until you cancel.