Uses useHostNetwork in docker arguments for the linux command

This commit is contained in:
Daniel Lupiañez Casares
2026-04-17 19:27:41 +02:00
committed by frostebite
parent 7b2ec07fc1
commit b57598a959
+2
View File
@@ -42,6 +42,7 @@ class Docker {
const { const {
workspace, workspace,
actionFolder, actionFolder,
useHostNetwork,
runnerTempPath, runnerTempPath,
sshAgent, sshAgent,
sshPublicKeysDirectoryPath, sshPublicKeysDirectoryPath,
@@ -85,6 +86,7 @@ class Docker {
: '' : ''
} \ } \
${sshPublicKeysDirectoryPath ? `--volume ${sshPublicKeysDirectoryPath}:/root/.ssh:ro` : ''} \ ${sshPublicKeysDirectoryPath ? `--volume ${sshPublicKeysDirectoryPath}:/root/.ssh:ro` : ''} \
${useHostNetwork ? '--net=host' : ''} \
${entrypointBash ? `--entrypoint ${commandPrefix}` : ``} \ ${entrypointBash ? `--entrypoint ${commandPrefix}` : ``} \
${image} \ ${image} \
${entrypointBash ? `-c` : `${commandPrefix} -c`} \ ${entrypointBash ? `-c` : `${commandPrefix} -c`} \