From db3ddd102ffdbc79b7f2b252cceb197485a15b5c Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Wed, 1 Jul 2026 17:50:45 +0200 Subject: [PATCH] ci(pr): skip heavy build-all for non-image changes + auto-cancel superseded runs pr.yml runs ./build-all (all images on one runner) on every branch push, which is slow and gets cancelled. Skip it via paths-ignore for changes that don't affect the images (helm/, .github/, docs), and add a concurrency group so a new push cancels the previous in-flight run instead of piling up. --- .github/workflows/pr.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 9ef1d6c..288365f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -3,6 +3,21 @@ name: Build and test Docker Images on: push: branches-ignore: [master,stable,experimental] + # The full ./build-all (every image, one runner) is heavy. Skip it for + # changes that don't affect the images — Helm chart, CI workflows, docs — + # so CI-only branches don't spend ~an hour building nothing relevant. + paths-ignore: + - 'helm/**' + - '.github/**' + - '**.md' + - LICENSE + - cleanup-old-tags.sh + +# Cancel a previous run still building when a new commit is pushed to the same +# branch, instead of letting runs pile up. +concurrency: + group: pr-build-${{ github.ref }} + cancel-in-progress: true jobs: test: