add working dir for docker builds

This commit is contained in:
2026-05-29 11:12:35 -04:00
parent 31865394fb
commit abeb9d04d0
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -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