local-docker provider use docker with commands

pull/461/head
Frostebite 2022-09-17 09:22:15 +01:00
parent 20476c3ccc
commit 6577aeb5c1
3 changed files with 5 additions and 3 deletions

3
dist/index.js vendored
View File

@ -5081,7 +5081,8 @@ class Docker {
${sshAgent ? `--volume ${sshAgent}:/ssh-agent` : ''} \ ${sshAgent ? `--volume ${sshAgent}:/ssh-agent` : ''} \
${sshAgent ? '--volume /home/runner/.ssh/known_hosts:/root/.ssh/known_hosts:ro' : ''} \ ${sshAgent ? '--volume /home/runner/.ssh/known_hosts:/root/.ssh/known_hosts:ro' : ''} \
${image} \ ${image} \
/bin/bash -c ${overrideCommands !== '' ? overrideCommands : `/entrypoint.sh`}`; ${image === `alpine` ? `/bin/sh -c ` : `/bin/bash -c `} \
${overrideCommands !== '' ? overrideCommands : `/entrypoint.sh`}`;
} }
static getWindowsCommand(image, parameters) { static getWindowsCommand(image, parameters) {
const { workspace, actionFolder, unitySerial, gitPrivateToken } = parameters; const { workspace, actionFolder, unitySerial, gitPrivateToken } = parameters;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -41,7 +41,8 @@ class Docker {
${sshAgent ? `--volume ${sshAgent}:/ssh-agent` : ''} \ ${sshAgent ? `--volume ${sshAgent}:/ssh-agent` : ''} \
${sshAgent ? '--volume /home/runner/.ssh/known_hosts:/root/.ssh/known_hosts:ro' : ''} \ ${sshAgent ? '--volume /home/runner/.ssh/known_hosts:/root/.ssh/known_hosts:ro' : ''} \
${image} \ ${image} \
/bin/bash -c ${overrideCommands !== '' ? overrideCommands : `/entrypoint.sh`}`; ${image === `alpine` ? `/bin/sh -c ` : `/bin/bash -c `} \
${overrideCommands !== '' ? overrideCommands : `/entrypoint.sh`}`;
} }
static getWindowsCommand(image: any, parameters: any): string { static getWindowsCommand(image: any, parameters: any): string {