diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 798b4e0..d582d37 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,7 +20,12 @@ on: - 'build/**' - 'Dockerfile' workflow_dispatch: - + inputs: + push: + description: 'Push image to registry' + required: false + default: true + type: boolean env: # github.repository as / @@ -99,7 +104,7 @@ jobs: with: context: . platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 - push: ${{ github.event_name != 'pull_request' }} + push: ${{ github.event_name != 'pull_request' && inputs.push }} build-args: | "SOURCE_COMMIT=${{ env.SHORT_SHA }}" "QBITTORRENT_TAG"="${{ env.RELEASE_TAG }}" @@ -128,7 +133,7 @@ jobs: with: context: . platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 - push: ${{ github.event_name != 'pull_request' }} + push: ${{ github.event_name != 'pull_request' && inputs.push }} build-args: | "SOURCE_COMMIT=${{ env.SHORT_SHA }}" tags: | @@ -142,7 +147,7 @@ jobs: # Sign the resulting Docker image digest except on PRs. - name: Sign the published Docker image - if: ${{ github.event_name != 'pull_request' }} + if: ${{ github.event_name != 'pull_request' && inputs.push }} env: COSIGN_EXPERIMENTAL: "true" # This step uses the identity token to provision an ephemeral certificate