This commit is contained in:
TingluoHuang
2021-10-14 16:40:42 -04:00
parent 5639175ecb
commit 42e7359f5c
2 changed files with 6 additions and 4 deletions

View File

@@ -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',