From 67300ec17f4061e0ac74fe50e24d0da234341451 Mon Sep 17 00:00:00 2001 From: ZoltyMat Date: Mon, 9 Mar 2026 01:20:05 -0400 Subject: [PATCH] ci: add PR trigger, copilot/* and feat/phase* branches, concurrency block (issue 5.0.0a) (#15) - Add pull_request: trigger so Copilot agent branches get CI coverage - Add feat/phase* and copilot/* to push branch list - Add concurrency block to cancel stale runs on same ref - Set push: false on PR events (build only, no ECR push for PRs) --- .github/workflows/ha-build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ha-build.yml b/.github/workflows/ha-build.yml index db9676be1..33bc5d5e3 100644 --- a/.github/workflows/ha-build.yml +++ b/.github/workflows/ha-build.yml @@ -6,6 +6,14 @@ on: - master - main - "feat/ha-*" + - "feat/phase*" + - "copilot/*" + pull_request: + +# Cancel in-progress runs when a new push arrives on the same branch. +concurrency: + group: ha-build-${{ github.ref }} + cancel-in-progress: true jobs: build-and-push: @@ -74,7 +82,8 @@ jobs: context: . file: Dockerfile.runtime platforms: linux/amd64 - push: true + # Only push the image on direct branch pushes, not on pull_request events. + push: ${{ github.event_name == 'push' }} provenance: false tags: | ${{ steps.meta.outputs.image_repo }}:${{ steps.meta.outputs.short_sha }}