Cut CI costs for container builds.
IntermediateScenarioCI/CD and production rollouts
Answer
Situation read → Heavy builds on every push.
What I'd do → Path filters to build only changed services, remote caches, smaller images, multi-stage targets, avoid multi-arch on every PR (build arm64 only on main/tags), and use larger fewer runners with persistent BuildKit.
Why → Time and compute are proportional to rebuilt layers.
Interview tip → Track build minutes per service.
More on CI/CD and production rollouts
Design a GitHub Actions workflow that builds, scans and pushes an image.IntermediateZero-downtime deploy on a single Docker host.AdvancedDeploy via GitOps with image digests.IntermediateCanary a new image on a Swarm service.AdvancedDocker build is flaky in CI due to network errors on package installs.IntermediateRun database migrations in the deploy flow of containerized apps.Intermediate