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