Don't rebuild image on non-included paths
ci/woodpecker/pr/pr-build Pipeline was successful

This commit is contained in:
2026-06-12 03:06:58 +02:00
parent a34f30483b
commit ee5ca68fc3
2 changed files with 15 additions and 9 deletions
+9 -6
View File
@@ -9,21 +9,24 @@
# Reports pass/fail status back to Gitea, so it shows up as a required check on
# the PR.
# Doc-only changes can't affect the image, so they don't trigger the build.
# Changes that can't affect the image don't trigger the build: docs and the
# RouterOS-side script (routeros/**: lives on the router, not in the image).
# NOTE: if Gitea is ever configured to REQUIRE this check for merging, a
# doc-only PR will have no check at all — exempt such PRs or merge manually.
# Renovate PRs always touch the Dockerfile or pipeline files, so the
# automerge gate is unaffected by these exclusions.
# PR touching only excluded files will have no check at all — exempt such PRs
# or merge manually. Renovate PRs always touch the Dockerfile or pipeline
# files, so the automerge gate is unaffected by these exclusions.
when:
- event: pull_request
path:
exclude: &doc_paths
exclude: &non_image_paths
- '**/*.md'
- 'docs/**'
- 'routeros/**'
- 'renovate.json'
- event: push
branch: main
path:
exclude: *doc_paths
exclude: *non_image_paths
steps:
- name: Build all arches (no push)