Upgrade Docker build workflow to use buildx with caching#355
Upgrade Docker build workflow to use buildx with caching#355t0mdavid-m wants to merge 3 commits intomainfrom
Conversation
Use docker/setup-buildx-action and docker/build-push-action with GHA cache backend (type=gha, mode=max) to cache Docker layers between CI runs. This avoids rebuilding unchanged layers, significantly speeding up builds — especially the full OpenMS compilation in Dockerfile. Each job uses a separate cache scope to avoid conflicts. mode=max caches all intermediate multi-stage layers, not just the final image. https://claude.ai/code/session_01URHRBGmtAaVif55VvwnjNu
📝 WalkthroughWalkthroughThe GitHub Actions workflow for building Docker images was updated to use the official Changes
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip You can get early access to new features in CodeRabbit.Enable the |
Summary
Upgraded the Docker image build workflow to use Docker Buildx with GitHub Actions caching for improved build performance and consistency.
Key Changes
actions/checkoutfrom v3 to v4docker buildcommands withdocker/build-push-action@v6for both build jobsdocker/setup-buildx-action@v3to enable Docker Buildx supporttype=gha) for both full and simple app builds with separate cache scopesload: trueto load built images into Docker daemon for local testingImplementation Details
full-appandsimple-app) to prevent cache conflictsmaxto maximize cache reuse across buildsdocker/build-push-actionprovides better integration with GitHub Actions and improved build performance through layer cachinghttps://claude.ai/code/session_01URHRBGmtAaVif55VvwnjNu
Summary by CodeRabbit