mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-10-31 13:37:42 +00:00
ci: tighten triggers for publish (#1041)
Change-Id: I6e6ec4261c32a6fd2ee13c6a26c5dfdc9d664967 Signed-off-by: izzy <me@insrt.uk>
This commit is contained in:
11
.github/workflows/docker.yaml
vendored
11
.github/workflows/docker.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user