Skip to content

Commit dda3e76

Browse files
committed
fix default dockerfile location
1 parent 8bff763 commit dda3e76

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ inputs:
4343
dockerfile:
4444
description: "The path to the dockerfile to use while building."
4545
required: true
46-
default: "${{ github.action_path }}/dockerfile"
46+
default: ""
4747

4848
docker_build_path:
4949
description: "The path to build the image from."

scripts/build_and_push.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env bash
22
set -e
33

4+
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
5+
46
if [[ -z $PYTHON_VERSION ]]; then
57
echo "Must set a python version to build."
68
exit 1
@@ -38,6 +40,10 @@ else
3840
BUILD_TARGET=$PYTHON_VERSION
3941
fi
4042

43+
if [[ -z $DOCKERFILE_LOCATION ]]; then
44+
DOCKERFILE_LOCATION=$SCRIPT_DIR/../dockerfile
45+
fi
46+
4147

4248
# Image Push location
4349
REGISTRY=${REGISTRY:-"ghcr.io"}

0 commit comments

Comments
 (0)