pull/437/head
Frostebite 2022-10-13 22:17:08 +01:00
parent e77aee6a4b
commit 8c19def256
3 changed files with 5 additions and 7 deletions

4
dist/index.js vendored
View File

@ -5713,7 +5713,7 @@ class Docker {
return `docker run \
--workdir /github/workspace \
--rm \
${entrypointBash ? `--entrypoint /bin/bash` : ``}
${entrypointBash ? `--entrypoint /bin/bash` : ``} \
${image_environment_factory_1.default.getEnvVarString(parameters, additionalVariables)} \
--env UNITY_SERIAL \
--env GITHUB_WORKSPACE=/github/workspace \
@ -5728,7 +5728,7 @@ class Docker {
${sshAgent ? `--volume ${sshAgent}:/ssh-agent` : ''} \
${sshAgent ? '--volume /home/runner/.ssh/known_hosts:/root/.ssh/known_hosts:ro' : ''} \
${image} \
${entrypointBash ? `--entrypoint` : ``} ${image === `alpine` || image === `amazon/aws-cli:latest` ? `/bin/sh -c ` : `/bin/bash -c `} \
${image === `alpine` || image === `amazon/aws-cli:latest` ? `/bin/sh -c ` : `/bin/bash -c `} \
${overrideCommands !== '' ? overrideCommands : `/entrypoint.sh`}`;
}
static getWindowsCommand(image, parameters) {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -46,7 +46,7 @@ class Docker {
return `docker run \
--workdir /github/workspace \
--rm \
${entrypointBash ? `--entrypoint /bin/bash` : ``}
${entrypointBash ? `--entrypoint /bin/bash` : ``} \
${ImageEnvironmentFactory.getEnvVarString(parameters, additionalVariables)} \
--env UNITY_SERIAL \
--env GITHUB_WORKSPACE=/github/workspace \
@ -61,9 +61,7 @@ class Docker {
${sshAgent ? `--volume ${sshAgent}:/ssh-agent` : ''} \
${sshAgent ? '--volume /home/runner/.ssh/known_hosts:/root/.ssh/known_hosts:ro' : ''} \
${image} \
${entrypointBash ? `--entrypoint` : ``} ${
image === `alpine` || image === `amazon/aws-cli:latest` ? `/bin/sh -c ` : `/bin/bash -c `
} \
${image === `alpine` || image === `amazon/aws-cli:latest` ? `/bin/sh -c ` : `/bin/bash -c `} \
${overrideCommands !== '' ? overrideCommands : `/entrypoint.sh`}`;
}