mirror of
https://github.com/lobaro/restic-backup-docker.git
synced 2026-11-14 16:02:43 +00:00
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:
1 parent
db408b9145
commit
52709929f3
2 files changed
+17
-4
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user