Skip to content

Commit

Permalink
fix(ci): simplify Dockerfile path determination
Browse files Browse the repository at this point in the history
Updated the GitHub Actions workflow to directly set the Dockerfile path
to "./Docker/Dockerfile" instead of checking for multiple possible
locations. This change simplifies the script and ensures consistency
in the Dockerfile path used.
  • Loading branch information
Brian2074 committed Nov 4, 2024
1 parent 83a2f2e commit f780c1f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,7 @@ jobs:
- name: Determine Dockerfile path
id: determine-path
run: |
if [ -f "./Dockerfile" ]; then
echo "DOCKERFILE_PATH=./Dockerfile" >> $GITHUB_ENV
elif [ -f "./dockerfile" ]; then
echo "DOCKERFILE_PATH=./dockerfile" >> $GITHUB_ENV
else
echo "Dockerfile not found. Exiting."
exit 1
fi
echo "Using Dockerfile at path: $DOCKERFILE_PATH"
DOCKERFILE_PATH="./Docker/Dockerfile"
# Step 4: Build Docker image
- name: Build Docker image
Expand Down

0 comments on commit f780c1f

Please sign in to comment.