TwiceToldby Develoker
ConceptsSystem designLabsCheat sheetsAbout

Develoker makes free tools for learning to build software. TwiceTold explains each idea twice, as an everyday analogy and the real thing; CloudArch lets you design cloud systems and put load on them.

About ยท Labs ยท Cheat sheets ยท Learning paths

โ† Back to CI/CD

๐Ÿญ CI/CD: cheat sheet

๐ŸŽจ The analogyA car factory line where every change is built and inspected the same way, and cars that pass are delivered.
๐ŸŽ“ The regular explanationAutomating the path from commit to production. Continuous integration builds and tests every change; continuous delivery and deployment ship the tested artifact through environments safely and repeatably.
The factory lineStep 3 of 3
๐Ÿง‘โ€๐Ÿ’ปDesigner๐ŸญAssembly๐Ÿ”Inspection214 passed๐ŸฆบSafety check๐Ÿ…ฟ๏ธ Finished car park
  1. A designer sends a small change to the factory. Every change goes through the same line.
  2. The car is assembled, then inspected, then safety-checked, station by station.
  3. A car that passes every station is parked, ready to go. The exact same car, not a rebuilt one, will be delivered later.
Stopping the lineStep 3 of 3
๐Ÿง‘โ€๐Ÿ’ปDesigner๐ŸญAssembly๐Ÿ”Inspectionโœ“๐Ÿ›ฃ๏ธ The road
  1. This car has a loose wheel. Inspection catches it.
  2. The car never reaches the road. The designer hears within minutes, while the change is fresh in their mind.
  3. The designer tightens the wheel and sends it through again. This time it passes every station.
From car park to roadStep 3 of 3
๐Ÿ…ฟ๏ธ Finished car park๐ŸTest tracksmoke โœ“๐Ÿ›ฃ๏ธPublic road1.4๐Ÿ“ˆRoad watchererrors โ†‘
  1. The parked car first goes round a test track that looks just like the real roads.
  2. Then it goes out on the public road. With continuous deployment, that happens automatically for every car that passes.
  3. Someone watches the road. If the new car misbehaves, it's swapped straight back for the previous model.

๐Ÿงฉ Key questions

Why is every station on the factory line automatic?
So nothing is skipped on a busy day. Every change goes down the same line, the same way.
Inspection finds a loose wheel. What happens?
The car never reaches the road, and the designer hears within minutes. Finding problems fast means they're fixed while the change is still fresh.
The new car misbehaves on the public road. What happens?
It's swapped straight back for the previous model. Someone watches the road, so a bad car doesn't stay out for long.