Shelves / DevOps, CI/CD and IaC
Software Engineering · Volume 8
DevOps, CI/CD and IaC
Part VIII of the Software Engineering roadmap, written out as a textbook that starts from zero. The opening chapter assumes you have committed code but never shipped it, and runs a real five-step pipeline that ships one commit and stops another; every later chapter opens with a plain-language Start here section whose experiments were actually run: Git's object database taken apart, GitHub Actions workflows executed locally with act, OpenTofu with the real AWS provider against an emulator, a small GitOps reconciler driving a k3s cluster with SOPS-encrypted secrets, and release automation with git-cliff. The chapters go all the way down to packfiles, cache keys, state files, drift, pruning and database lock queues. Each chapter ends with a lab of real measurements and a revision sheet, and a final chapter of eight projects builds a complete delivery system measured with DORA metrics.
Two ways to read this book
Every chapter has the same shape: Start here (first principles, plain language, small verified examples) → How deep to go (what each mastery level needs) → full-depth sections → Lab (experiments with real measured output) → Revision sheet (key ideas, numbers to remember, pitfalls, glossary, quiz).
How to use this book
- Read one topic at a time. Each topic heading has a Done tick. Tick it only when you can explain the idea aloud without looking, which is roughly mastery level L2–L3 below.
- Run the code. Every comparison block has tabs for each language; type the example out in at least two of them.
- Take the chapter quiz at the end. A score of 80% or more counts as passed. Wrong answers show the explanation, so re-read that topic and untick it if needed.
- Revisit after a delay. The roadmap's loop applies: recall, explain, implement without notes, break it, measure it.
Mastery levels
Languages used throughout
Versions are as of October 2026: Git 2.55 (Git 3.0 is planned, not released), Terraform 1.14 and OpenTofu 1.12, Argo CD 3.5 and Flux 2.x. CI syntax is shown for GitHub Actions first, with GitLab CI, Jenkins and TeamCity equivalents.
Contents
- DO·00Start Here: How Code Reaches ProductionFor readers who have written and committed code but never shipped it: the path from a commit to running software, a five-step delivery pipeline run…5 min
- DO·92GitGit from the inside out: the content-addressed object database (blobs, trees, commits, annotated tags), hashes and packfiles, refs, HEAD and the…23 min
- DO·93CI/CDContinuous integration, delivery and deployment from first principles: why they work (small batches, fast feedback, DORA metrics), every pipeline…21 min
- DO·94Infrastructure as CodeManaging infrastructure as versioned, reviewed code: declarative versus imperative approaches, resources, providers, state, modules, variables…23 min
- DO·95GitOpsGitOps as an operating model: the OpenGitOps principles (declarative, versioned and immutable, pulled automatically, continuously reconciled), push…17 min
- DO·96Release EngineeringThe discipline of shipping: versioning schemes (Semantic Versioning in full, CalVer, build numbers) and how each ecosystem (Maven, Go modules, Cargo…19 min
- DO·97Delivery ProjectsEight build-it-yourself projects that give the tiffin centre a complete delivery system: a disciplined Git workflow, a fast trustworthy CI pipeline…7 min