Skip to content

Commit

Permalink
fix: use docker_file_name input
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Heinrich <[email protected]>
  • Loading branch information
andistorm committed Jul 8, 2024
1 parent aee584b commit 27e3d51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy-single-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ jobs:
id: get-context
run: |
if [ -f source/${{ inputs.directory }}/${{ inputs.docker_file_name }} ]; then
echo "path=source/${{ inputs.directory }}/" >> $GITHUB_OUTPUT
echo "path=source/${{ inputs.directory }}" >> $GITHUB_OUTPUT
elif [ -f source/${{ inputs.directory }}/.devcontainer/${{ inputs.docker_file_name }} ]; then
echo "path=source/${{ inputs.directory }}/.devcontainer/" >> $GITHUB_OUTPUT
echo "path=source/${{ inputs.directory }}/.devcontainer" >> $GITHUB_OUTPUT
else
echo "No Dockerfile found for image ${{ inputs.image_name }} in dokcer_directory ${{ inputs.directory }} with docker_file_name ${{ inputs.docker_file_name }}!"
exit 1
Expand Down Expand Up @@ -125,6 +125,7 @@ jobs:
uses: docker/build-push-action@v3
with:
context: ${{ steps.get-context.outputs.path }}
file: ${{ steps.get-context.outputs.path }}/${{ inputs.docker_file_name }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit 27e3d51

Please sign in to comment.