Faster ROS 2 CI/CD: BuildKit Caching, Multi-Stage Images and Cheap Self-Hosted Runners

A concept guide to speeding up ROS 2 CI/CD: cache-friendly Dockerfile stages, BuildKit and bake, honest compile caches, self-hosted spot runners and right-sized GPU jobs.

In this article

  • Why the cycle matters
  • Layer one: make Docker builds cache well
  • Stage design: avoid cache-busting by construction
  • Keep compile caches honest
  • Layer two: cheaper runners
  • Answers from the audience
  • Future ideas
  • Our take: where this fits
  • A starter checklist
  • Further reading