fix(ci): separate Docker action
This commit is contained in:
parent
cdbb74fff6
commit
f3c8eaf7af
16
.gitea/workflows/build_docker.yml
Normal file
16
.gitea/workflows/build_docker.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
name: Build Docker
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- released
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
create_docker:
|
||||||
|
name: Create Docker Image
|
||||||
|
needs: create_release
|
||||||
|
uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/build-push-docker.yml@main
|
||||||
|
with:
|
||||||
|
release: ${{ gitea.event.release.name }}
|
||||||
|
secrets:
|
||||||
|
ACTIONS_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
|
||||||
|
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}
|
@ -27,13 +27,3 @@ jobs:
|
|||||||
needs: create_release
|
needs: create_release
|
||||||
steps:
|
steps:
|
||||||
- run: echo "Created release ${{ needs.create_release.outputs.release_name }}."
|
- run: echo "Created release ${{ needs.create_release.outputs.release_name }}."
|
||||||
|
|
||||||
create_docker:
|
|
||||||
name: Create Docker Image
|
|
||||||
needs: create_release
|
|
||||||
uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/build-push-docker.yml@main
|
|
||||||
with:
|
|
||||||
release: ${{ needs.create_release.outputs.release_name }}
|
|
||||||
secrets:
|
|
||||||
ACTIONS_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
|
|
||||||
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user