diff --git a/.gitea/workflows/build_docker.yml b/.gitea/workflows/build_docker.yml new file mode 100644 index 0000000..07bf9b1 --- /dev/null +++ b/.gitea/workflows/build_docker.yml @@ -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 }} diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 4ad2bfa..a64f113 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -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 }}