mirror of
https://github.com/actions/runner.git
synced 2025-12-24 18:37:26 +08:00
.
This commit is contained in:
@@ -54,7 +54,6 @@ async function run(): Promise<void> {
|
||||
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(
|
||||
@@ -62,8 +61,10 @@ async function run(): Promise<void> {
|
||||
)
|
||||
}
|
||||
|
||||
creatArgs.push(`--entrypoint=tail`)
|
||||
creatArgs.push(containerImage)
|
||||
creatArgs.push(jobContainer.containerEntryPointArgs)
|
||||
creatArgs.push(`-f`)
|
||||
creatArgs.push(`/dev/null`)
|
||||
|
||||
core.debug(JSON.stringify(creatArgs))
|
||||
|
||||
|
||||
@@ -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