ci(docker): add path filters to avoid unnecessary builds - #30
Conversation
Only trigger Docker build when code actually changes: - Rust source code (src/, crates/, benches/) - Dependencies (Cargo.toml, Cargo.lock) - Docker configuration (Dockerfile, .dockerignore) Skip build for: - Documentation changes (*.md, docs/) - CI workflow updates (docker-publish.yml itself) - Other non-code files This saves GitHub Actions minutes and avoids waste builds.
PR Intake Checks - Warnings (non-blocking)The following are recommendations:
|
|
Caution Review failedThe pull request is closed. Note
|
| Cohort / File(s) | Summary |
|---|---|
GitHub Actions Workflow Configuration .github/workflows/docker-publish.yml |
Added path filters to push and pull_request triggers to limit workflow execution to code and build-related changes (src/, crates/, benches/, Cargo.toml, Cargo.lock, Dockerfile, .dockerignore) while excluding documentation (docs/, *.md files). No changes to job steps or runtime logic. |
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~8 minutes
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Post copyable unit tests in a comment
- Commit unit tests in branch
fix/docker-and-install
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 @coderabbitai help to get the list of available commands and usage tips.
Only trigger Docker build when code actually changes:
Skip build for:
This saves GitHub Actions minutes and avoids waste builds.
Summary by CodeRabbit
Chores