Skip to content

Commit

Permalink
Fix workdir
Browse files Browse the repository at this point in the history
  • Loading branch information
toolmantim committed May 26, 2017
1 parent aa87004 commit 26823d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions hooks/command
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ docker run \
-it \
--rm \
-v "$(pwd):${BUILDKITE_PLUGIN_DOCKER_WORKDIR}" \
--workdir "${BUILDKITE_PLUGIN_DOCKER_WORKDIR}" \
"${BUILDKITE_PLUGIN_DOCKER_IMAGE}" \
bash -c "${BUILDKITE_COMMAND}"
2 changes: 1 addition & 1 deletion tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export DOCKER_STUB_DEBUG=/dev/tty
export BUILDKITE_COMMAND="command1 \"a string\" && command2"

stub docker \
"run -it --rm -v $PWD:/app image:tag bash -c 'command1 \"a string\" && command2' : echo ran command in docker"
"run -it --rm -v $PWD:/app --workdir /app image:tag bash -c 'command1 \"a string\" && command2' : echo ran command in docker"

run $PWD/hooks/command

Expand Down

0 comments on commit 26823d4

Please sign in to comment.