Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Trigus42 committed Oct 1, 2024
1 parent f0b628f commit 53554c4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <account>/<repo>
Expand Down Expand Up @@ -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 }}"
Expand Down Expand Up @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit 53554c4

Please sign in to comment.