Skip to content

Commit c9ba8e6

Browse files
committed
Use workingdirectory correctly
1 parent d540785 commit c9ba8e6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ runs:
127127
if: inputs.dockerenabled == 'true'
128128
uses: docker/build-push-action@v2
129129
with:
130-
context: .
130+
context: ${{ inputs.workingdirectory }}
131131
push: ${{ steps.preparation.outputs.push }}
132132
file: ${{ inputs.workingdirectory }}/${{ inputs.dockerfile }}
133133
target: ${{ inputs.dockerbuildtarget }}
@@ -139,6 +139,7 @@ runs:
139139

140140
- name: Update Docker Image in Repository
141141
shell: bash
142+
working-directory: ${{ inputs.workingdirectory }}
142143
run: |
143144
commit_changes () {
144145
if [[ ${{ steps.preparation.outputs.push }} == "true" ]]; then

0 commit comments

Comments
 (0)