From bba24120f1bd43a1eea5fdf438bc806a9bf80121 Mon Sep 17 00:00:00 2001 From: "claude@clouddev1" Date: Fri, 12 Jun 2026 22:11:24 +0000 Subject: [PATCH] ci: scope gate + image-build to branch pushes (skip tags) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tag pushes ignore paths: filters, so a release tag spuriously rebuilt the unchanged CI image and re-ran the gate on a commit the branch push already gated. Add branches: ['**'] to both push triggers — tag pushes no longer fire them (release.yaml owns tags). Pushing commits + a tag together still gates the commits via the branch push. --- .gitea/workflows/build-ci-image.yaml | 4 ++++ .gitea/workflows/ci.yaml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/.gitea/workflows/build-ci-image.yaml b/.gitea/workflows/build-ci-image.yaml index 9cea8bb..a2ede71 100644 --- a/.gitea/workflows/build-ci-image.yaml +++ b/.gitea/workflows/build-ci-image.yaml @@ -13,6 +13,10 @@ name: build-ci-image on: push: + # Branch pushes only. Tag pushes ignore `paths:` filters and would rebuild + # the (unchanged) image on every release tag — `branches: ['**']` excludes + # tags, so this runs only when a branch push actually changes an image input. + branches: ['**'] paths: - '.gitea/ci-image/Dockerfile' - 'flake.nix' diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index cdf32f9..0505252 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -8,6 +8,11 @@ name: ci on: push: + # Branch pushes only — a tag push hits the same commit the branch push + # already gated, so `branches: ['**']` drops the redundant tag-triggered + # run (the release workflow owns tags). Pushing commits + a tag together + # still gates the commits via the branch push. + branches: ['**'] pull_request: jobs: