Docker: Only cache qemu/buildx on default branch - #11241
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe Docker build workflow now enables QEMU and Buildx caching only when the ref matches the repository’s default branch. ChangesDocker cache gating
Estimated code review effort: 2 (Simple) | ~5 minutes Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/docker_build.yml:
- Around line 48-50: Update the SAVE_CACHE expression in the workflow
environment to require both a push event and that github.ref_name matches
github.event.repository.default_branch, matching the contract used by
build_portduino_wasm.yml. Keep cache population disabled for workflow_dispatch,
scheduled, pull request, and other non-push runs.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 45906fa6-fa33-412a-aa4b-87a3162bd9fe
📒 Files selected for processing (1)
.github/workflows/docker_build.yml
Docker qemu / buildx are eating up lots of cache for little benefit. Remove unless we're building from the main branch.
5b9a732 to
1beea0f
Compare
⚡ Try this PR in the Web FlasherNote Building this pull request… the flash button, badges and supported-board |
Docker qemu / buildx are eating up lots of cache for little benefit. Remove unless we're building from the main branch.
Summary by CodeRabbit