add working dir for docker builds
This commit is contained in:
@@ -28,6 +28,9 @@ inputs:
|
||||
TAG_LATEST:
|
||||
description: "Also tag and push the image as latest"
|
||||
default: "false"
|
||||
WORKING_DIRECTORY:
|
||||
description: "Working directory for the Docker build"
|
||||
default: "."
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
@@ -52,7 +55,7 @@ runs:
|
||||
if [ "${{ inputs.TAG_LATEST }}" = "true" ]; then
|
||||
TAGS="$TAGS -t ${{ inputs.IMAGE_PATH }}:latest"
|
||||
fi
|
||||
docker buildx build -f Dockerfile . \
|
||||
docker buildx build -f ${{ inputs.WORKING_DIRECTORY }}/Dockerfile ${{ inputs.WORKING_DIRECTORY }} \
|
||||
--platform ${{ inputs.PLATFORMS }} \
|
||||
--push \
|
||||
$TAGS
|
||||
|
||||
Reference in New Issue
Block a user