fix(ci): separate Docker action

This commit is contained in:
Luke Tainton 2025-01-12 21:10:32 +00:00
parent cdbb74fff6
commit f3c8eaf7af
Signed by: luke
SSH Key Fingerprint: SHA256:D34npKT7UaiT/7gULqu7EPSLWWVAjTjXf4kKfJ/fQBo
2 changed files with 16 additions and 10 deletions

View 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 }}

View File

@ -27,13 +27,3 @@ jobs:
needs: create_release
steps:
- 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 }}