only run release to docker when containing [release]

This commit is contained in:
Cedric Verstraeten
2024-01-07 08:22:24 +01:00
parent ca367611d7
commit ef2ea999df
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -7,6 +7,8 @@ on:
jobs:
build-amd64:
runs-on: ubuntu-latest
# If contains the keyword "[release]" in the commit message.
if: "contains(github.event.head_commit.message, '[release]')"
strategy:
matrix:
architecture: [amd64]
@@ -32,6 +34,8 @@ jobs:
run: docker buildx imagetools create -t kerberos/agent-dev:latest kerberos/agent-dev:arch-$(echo ${{matrix.architecture}} | tr / -)-$(echo $GITHUB_SHA | cut -c1-7)
build-other:
runs-on: ubuntu-latest
# If contains the keyword "[release]" in the commit message.
if: "contains(github.event.head_commit.message, '[release]')"
strategy:
matrix:
#architecture: [arm64, arm/v7, arm/v6]