Skip to content

Commit

Permalink
Merge pull request #24 from Staffbase/fix-workingdirectory
Browse files Browse the repository at this point in the history
Fix workingdirectory
  • Loading branch information
pofl authored Mar 29, 2022
2 parents e4a1fec + 49295c7 commit b68edd7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ inputs:
description: 'Password for the Docker Registry'
required: true
dockerfile:
description: 'Dockerfile'
description: 'Path of the Dockerfile. Should be relative to input.workingdirectory'
required: true
default: './Dockerfile'
dockerbuildargs:
Expand Down Expand Up @@ -61,7 +61,7 @@ inputs:
description: 'Files which should be updated by the GitHub Action for PROD'
required: false
workingdirectory:
description: 'The directory (as a path relative to the repo root dir) in which the GitOps action should be executed. The dockerfile variable should be relative to workingdirectory.'
description: 'The path relative to the repo root dir in which the GitOps action should be executed.'
required: false
default: '.'

Expand Down Expand Up @@ -127,9 +127,9 @@ runs:
if: inputs.dockerenabled == 'true'
uses: docker/build-push-action@v2
with:
context: .
context: ${{ inputs.workingdirectory }}
push: ${{ steps.preparation.outputs.push }}
file: ${{ inputs.dockerfile }}
file: ${{ inputs.workingdirectory }}/${{ inputs.dockerfile }}
target: ${{ inputs.dockerbuildtarget }}
build-args: ${{ inputs.dockerbuildargs }}
tags: ${{ steps.preparation.outputs.tag_list }}
Expand Down

0 comments on commit b68edd7

Please sign in to comment.