From f33ac43557cf8fb6f4d9bc098eec6fd0c09e430a Mon Sep 17 00:00:00 2001 From: Louise Poole Date: Thu, 20 Aug 2026 15:39:39 +0200 Subject: [PATCH] ci: skip PR image build on release-plz PRs Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/docker.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 5bf34ca8d..943204b15 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -16,6 +16,10 @@ env: jobs: build: name: Build Docker image (${{ matrix.platform }}) + # release-plz PRs only bump versions and changelogs; the code in them was already + # image-built on the PRs that introduced it, and merging one immediately fires the + # release event that rebuilds the same source. Skip the redundant PR-side build. + if: github.event_name == 'release' || !contains(github.event.pull_request.labels.*.name, 'release') runs-on: ${{ matrix.runner }} timeout-minutes: 30 strategy: