Use RUNNER_TEMP environment variable instead of a hardcoded path (#138)

This commit is contained in:
xanantis
2020-08-22 17:59:08 +02:00
committed by GitHub
parent 3e0842dda0
commit 3ee15170fd
3 changed files with 5 additions and 3 deletions

View File

@@ -21,6 +21,7 @@ class Docker {
const {
version,
workspace,
runnerTempPath,
platform,
projectPath,
buildName,
@@ -77,8 +78,8 @@ class Docker {
--env RUNNER_TEMP \
--env RUNNER_WORKSPACE \
--volume "/var/run/docker.sock":"/var/run/docker.sock" \
--volume "/home/runner/work/_temp/_github_home":"/github/home" \
--volume "/home/runner/work/_temp/_github_workflow":"/github/workflow" \
--volume "${runnerTempPath}/_github_home":"/github/home" \
--volume "${runnerTempPath}/_github_workflow":"/github/workflow" \
--volume "${workspace}":"/github/workspace" \
${image}`;