mirror of
https://github.com/actions/runner.git
synced 2026-01-02 16:07:42 +08:00
.
This commit is contained in:
@@ -1092,12 +1092,13 @@ function run() {
|
||||
const creatArgs = ['create'];
|
||||
creatArgs.push(`--workdir=${jobContainer.containerWorkDirectory}`);
|
||||
creatArgs.push(`--network=${networkName}`);
|
||||
creatArgs.push(`--entrypoint=${jobContainer.containerEntryPoint}`);
|
||||
for (const mountVolume of jobContainer.mountVolumes) {
|
||||
creatArgs.push(`-v=${mountVolume.sourceVolumePath}:${mountVolume.targetVolumePath}`);
|
||||
}
|
||||
creatArgs.push(`--entrypoint=tail`);
|
||||
creatArgs.push(containerImage);
|
||||
creatArgs.push(jobContainer.containerEntryPointArgs);
|
||||
creatArgs.push(`-f`);
|
||||
creatArgs.push(`/dev/null`);
|
||||
core.debug(JSON.stringify(creatArgs));
|
||||
// const containerId = await exec.getExecOutput('podman', [
|
||||
// 'create',
|
||||
|
||||
Reference in New Issue
Block a user