From 0578333f9d3e252e98b4ce514cfc1156b6a3f928 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Wed, 6 Nov 2024 19:47:55 -0500 Subject: [PATCH] ci: allow manual dispatch --- .forgejo/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 86936e5..c6a20e7 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -2,6 +2,7 @@ on: push: tags: - "*-v*" + workflow_dispatch: env: REGISTRY_ENDPOINT: host.containers.internal:5000 @@ -40,6 +41,7 @@ jobs: - name: List images run: podman image ls - name: Push tagged image to registry + if: ${{ github.event_name == "push" }} run: | podman push ${{ steps.image-metadata.outputs.full-image-name }} ${{ env.REGISTRY_ENDPOINT }}/forge-runners/${{ steps.image-metadata.outputs.full-image-name }} podman push ${{ steps.image-metadata.outputs.full-image-name }} ${{ env.REGISTRY_ENDPOINT }}/forge-runners/${{ matrix.image-name }}:latest