Core Concept 2: The "Factory & Assembly Line" (Why Two Pipelines)
Why splitting work into two pipelines gives you the best of both worlds — reliability and speed.
Building the Docker image is slow (2–3 minutes). Running composer install is fast (~30s).
The Solution: Two pipelines:
- Pipeline A (Factory): Runs only when Dockerfile changes. Outputs a compressed image artifact.
- Pipeline B (Assembly Line): Runs on every commit. Downloads pre-built image — skips the build.
Result: your daily pipeline is minutes faster.