local-docker provider use docker with commands
parent
20476c3ccc
commit
6577aeb5c1
|
|
@ -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;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue