-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Improve Docker build caching for staging workflow #7623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
Conversation
- Add registry cache persistence to fallback when GHA cache expires - Optimize static-assets stage with selective COPY for frontend files - Reduces context from 44MB to 3.2MB, preventing cache invalidation on backend changes - Backend-only changes no longer trigger unnecessary frontend rebuilds
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
WalkthroughThis pull request modifies Docker build workflows and the production Dockerfile to improve build efficiency through caching strategies. The GitHub Actions workflows (both production and staging) have been updated to implement Docker Buildx setup and multi-layered caching, using both GitHub Actions cache and registry cache destinations for different architectures. The production Dockerfile's frontend assets build stage has been refactored to use granular COPY commands organized into separate layers—isolating dependencies, build configuration, frontend source files, and Blade templates—to optimize Docker layer caching without altering the build process itself. ✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-12-08T20:23:33.775ZApplied to files:
🔇 Additional comments (4)
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 |
Changes
Benefits