Skip to content

Commit

Permalink
Use builds.package as default for inputs.build_context
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Oct 6, 2023
1 parent 8648a25 commit 29a92d9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ inputs:
description: Paths used to trigger a build; e.g. ('./backend/', './frontend/)
build_context:
description: Build context, not required for self-contained package/default directory
value: ${{ inputs.package }}
build_file:
description: Dockerfile with path, not required for self-contained package/default directory
keep_versions:
Expand Down Expand Up @@ -61,13 +62,6 @@ runs:
run: |
# Inputs and variables
# Use package folder as build_context unless an override has been provided
if [ -z ${{ inputs.build_context }} ]; then
echo "build_context=${{ inputs.package }}" >> $GITHUB_OUTPUT
else
echo "build_context=${{ inputs.build_context }}" >> $GITHUB_OUTPUT
fi
# Use inputs.package/Dockerfile as build_file unless an override has been provided
if [ -z ${{ inputs.build_file }} ]; then
echo "build_file=${{ inputs.package }}/Dockerfile" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 29a92d9

Please sign in to comment.