๐ญ 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.
- A designer sends a small change to the factory. Every change goes through the same line.
- The car is assembled, then inspected, then safety-checked, station by station.
- A car that passes every station is parked, ready to go. The exact same car, not a rebuilt one, will be delivered later.
- This car has a loose wheel. Inspection catches it.
- The car never reaches the road. The designer hears within minutes, while the change is fresh in their mind.
- The designer tightens the wheel and sends it through again. This time it passes every station.
- The parked car first goes round a test track that looks just like the real roads.
- Then it goes out on the public road. With continuous deployment, that happens automatically for every car that passes.
- 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.