Skip to content

Commit

Permalink
Support optional target and build-args in build action
Browse files Browse the repository at this point in the history
  • Loading branch information
tcjennings committed Dec 13, 2024
1 parent bbcadb8 commit 4aa6e7e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ inputs:
platforms:
description: "List of target platforms for build"
required: false
target:
description: "Name of target stage to build"
required: false
build-args:
description: "List of build-time variables"
required: false
outputs:
tag:
description: "The tag of the Docker image that was built."
Expand Down Expand Up @@ -61,6 +67,8 @@ runs:
with:
context: "${{ inputs.context }}"
file: "${{ inputs.dockerfile }}"
build-args: "${{ inputs.build-args }}"
target: "${{ inputs.target }}"
push: ${{ fromJSON(inputs.push) == true }}
platforms: ${{ inputs.platforms }}
tags: |
Expand Down

0 comments on commit 4aa6e7e

Please sign in to comment.