ci: require a green test run before publishing images

test.yml becomes callable; docker-publish.yml runs it as a gate job on
master and tag pushes and builds only when it succeeded. Pull requests
keep running test.yml directly, so nothing runs twice.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Tobias KaupatandClaude Sonnet 5.5 committed 2026-10-18 10:45:23 +02:00
1 parent db408b9145
commit 52709929f3
2 files changed
+17 -4

No files matched your search

+4 -3
View File
@@ -1,11 +1,12 @@
name: Test
# Pull requests run this workflow directly. Pushes to master and v*.*.* tags run
# it as the gate of docker-publish.yml (workflow_call), so the suite runs exactly
# once per event and an image is never published without it.
on:
push:
branches: [ "master" ]
tags: [ "v*.*.*" ]
pull_request:
branches: [ "master" ]
workflow_call:
permissions:
contents: read