ci: tighten triggers for publish (#1041)

Change-Id: I6e6ec4261c32a6fd2ee13c6a26c5dfdc9d664967

Signed-off-by: izzy <me@insrt.uk>
This commit is contained in:
Paul Makles
2026-10-15 13:58:30 +01:00
committed by GitHub
parent 198335429d
commit 416562b20d

View File

@@ -4,6 +4,15 @@ on:
push:
branches:
- main
paths:
- "Cargo.toml"
- "Cargo.lock"
- "crates/**"
- "scripts/build-image-layer.sh"
- "Dockerfile"
- "**/Dockerfile"
- ".dockerignore"
- ".github/workflows/docker.yaml"
tags:
- "*"
pull_request:
@@ -64,7 +73,7 @@ jobs:
publish:
runs-on: arc-runner-set
if: ${{ github.event_name != 'pull_request' }}
if: ${{ github.event_name != 'pull_request' && !(github.ref == 'refs/heads/main' && startsWith(github.event.head_commit.message, 'chore(release):')) }}
name: Publish Docker images
steps:
# Configure build environment