ci: setup workflow chain

This commit is contained in:
nkanaev
2026-07-10 19:06:07 +01:00
parent 018804a4a4
commit f075b046e8
4 changed files with 24 additions and 15 deletions

View File

@@ -1,11 +1,5 @@
name: Publish Docker Image
on:
push:
tags:
- v*
branches:
- master
workflow_dispatch:
on: workflow_call
env:
REGISTRY: ghcr.io

View File

@@ -1,10 +1,5 @@
name: Build
on:
push:
tags:
- v*
workflow_dispatch:
name: Build Releases
on: workflow_call
jobs:
build_macos:

20
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: CI
on:
push:
workflow_dispatch:
jobs:
test:
uses: ./.github/workflows/test.yml
build-docker:
needs: test
if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master'
uses: ./.github/workflows/build-docker.yml
secrets: inherit
build-releases:
needs: test
if: startsWith(github.ref, 'refs/tags/v')
uses: ./.github/workflows/build-releases.yml
secrets: inherit

View File

@@ -1,6 +1,6 @@
name: Test
on: push
on: workflow_call
jobs:
test: