From f3c8eaf7af3853ded974084202acb683b1fe48c7 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Sun, 12 Jan 2025 21:10:32 +0000 Subject: [PATCH] fix(ci): separate Docker action --- .gitea/workflows/build_docker.yml | 16 ++++++++++++++++ .gitea/workflows/release.yml | 10 ---------- 2 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 .gitea/workflows/build_docker.yml 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 }}