Skip to content

Commit

Permalink
Docker: allow to build the image without a GUI
Browse files Browse the repository at this point in the history
Allow building the image without accessing the GitHub GUI

Signed-off-by: Claudio André <[email protected]>
  • Loading branch information
claudioandre-br committed Apr 21, 2024
1 parent edbcaee commit d6a8f7f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ name: Docker
description: "Push the resulting image to Docker registry?"
required: true
type: boolean
default: true
default: false
push:
branches:
- "docker"

env:
REPO: ghcr.io/${{ github.repository_owner }}/john
Expand Down Expand Up @@ -124,11 +127,13 @@ jobs:
with:
context: "${{ github.workspace }}/deploy/docker"
platforms: linux/amd64,linux/arm64
push: ${{ github.event.inputs.push }}
push: ${{
(github.event.inputs.push || false)
}}
build-args: |
TYPE="${{ github.event.inputs.type }}"
tags: |
${{ env.REPO }}:${{ github.event.inputs.tag }}
${{ env.REPO }}:${{ github.event.inputs.tag || 'test' }}
${{ env.REPO }}:${{ github.event.inputs.tag }}_J${{ github.run_number }}
${{ env.REPO }}:${{ github.event.inputs.tag }}_${{ steps.data.outputs.version }}
labels: |
Expand Down

0 comments on commit d6a8f7f

Please sign in to comment.