Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ on:
description: 'Determines if the resulting Docker image is pushed to Docker Hub'
required: true
type: boolean
build-args:
# Example of newline-delimited string (https://github.com/docker/build-push-action?tab=readme-ov-file#inputs):
# build-args: |
# PROJECT_VERSION=1.2.3
description: 'List of Docker build arguments (--build-arg), formatted as newline-delimited string'
required: false
type: string
context:
description: 'Docker build context'
required: false
Expand Down Expand Up @@ -85,6 +92,8 @@ jobs:
name: Build and push Docker image
uses: docker/build-push-action@v6
with:
# https://github.com/docker/build-push-action?tab=readme-ov-file#inputs
build-args: ${{ inputs.build-args }}
context: ${{ inputs.context }}
# https://docs.docker.com/build/concepts/dockerfile/#filename
file: ${{ inputs.file }}
Expand Down