Skip to content

Commit

Permalink
feat: add context input
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Dec 10, 2022
1 parent 9ea59df commit 37c51c7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ inputs:
description: "Docker build arguments"
required: true
default: ""
context:
description: "Docker build context"
required: true
default: "."
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -88,7 +92,7 @@ runs:
uses: docker/build-push-action@v3
if: ${{ github.event_name != 'release' }}
with:
context: .
context: ${{ inputs.context }}
file: ${{ inputs.dockerfile }}
build-args: ${{ inputs.build-args }}
push: true
Expand All @@ -115,7 +119,7 @@ runs:
uses: docker/build-push-action@v3
if: ${{ github.event_name == 'release' }}
with:
context: .
context: ${{ inputs.context }}
file: ${{ inputs.dockerfile }}
build-args: ${{ inputs.build-args }}
push: true
Expand Down

0 comments on commit 37c51c7

Please sign in to comment.