mirror of
https://github.com/actions/runner.git
synced 2025-12-12 05:37:01 +00:00
.
This commit is contained in:
@@ -76,7 +76,7 @@ async function run(): Promise<void> {
|
|||||||
// copy over node.js
|
// copy over node.js
|
||||||
const cpNodeArgs = [
|
const cpNodeArgs = [
|
||||||
'cp',
|
'cp',
|
||||||
'/actions-runner/externals/node16/bin',
|
'/actions-runner/externals/node12/bin',
|
||||||
'job-container:/__runner_util/'
|
'job-container:/__runner_util/'
|
||||||
]
|
]
|
||||||
await exec.exec('kubectl', cpNodeArgs)
|
await exec.exec('kubectl', cpNodeArgs)
|
||||||
@@ -105,7 +105,7 @@ async function run(): Promise<void> {
|
|||||||
core.debug(JSON.stringify(removeInput))
|
core.debug(JSON.stringify(removeInput))
|
||||||
const jobContainerId = removeInput.jobContainerId
|
const jobContainerId = removeInput.jobContainerId
|
||||||
|
|
||||||
await exec.exec('kubectl', ['delete', 'pod', jobContainerId])
|
await exec.exec('kubectl', ['delete', 'pod', jobContainerId, '--force'])
|
||||||
// await exec.exec('podman', ['network', 'rm', '-f', network])
|
// await exec.exec('podman', ['network', 'rm', '-f', network])
|
||||||
} else if (command === 'Exec') {
|
} else if (command === 'Exec') {
|
||||||
const execInput = inputJson.execInput
|
const execInput = inputJson.execInput
|
||||||
|
|||||||
@@ -3046,7 +3046,7 @@ function run() {
|
|||||||
// copy over node.js
|
// copy over node.js
|
||||||
const cpNodeArgs = [
|
const cpNodeArgs = [
|
||||||
'cp',
|
'cp',
|
||||||
'/actions-runner/externals/node16/bin',
|
'/actions-runner/externals/node12/bin',
|
||||||
'job-container:/__runner_util/'
|
'job-container:/__runner_util/'
|
||||||
];
|
];
|
||||||
yield exec.exec('kubectl', cpNodeArgs);
|
yield exec.exec('kubectl', cpNodeArgs);
|
||||||
@@ -3059,7 +3059,7 @@ function run() {
|
|||||||
yield exec.exec('kubectl', cpKubeInnerArgs);
|
yield exec.exec('kubectl', cpKubeInnerArgs);
|
||||||
const creationOutput = {
|
const creationOutput = {
|
||||||
JobContainerId: 'job-container',
|
JobContainerId: 'job-container',
|
||||||
Network: "job-container"
|
Network: 'job-container'
|
||||||
};
|
};
|
||||||
const output = JSON.stringify({ CreationOutput: creationOutput });
|
const output = JSON.stringify({ CreationOutput: creationOutput });
|
||||||
core.debug(output);
|
core.debug(output);
|
||||||
@@ -3069,7 +3069,7 @@ function run() {
|
|||||||
const removeInput = inputJson.removeInput;
|
const removeInput = inputJson.removeInput;
|
||||||
core.debug(JSON.stringify(removeInput));
|
core.debug(JSON.stringify(removeInput));
|
||||||
const jobContainerId = removeInput.jobContainerId;
|
const jobContainerId = removeInput.jobContainerId;
|
||||||
yield exec.exec('kubectl', ['delete', 'pod', jobContainerId]);
|
yield exec.exec('kubectl', ['delete', 'pod', jobContainerId, '--force']);
|
||||||
// await exec.exec('podman', ['network', 'rm', '-f', network])
|
// await exec.exec('podman', ['network', 'rm', '-f', network])
|
||||||
}
|
}
|
||||||
else if (command === 'Exec') {
|
else if (command === 'Exec') {
|
||||||
|
|||||||
Reference in New Issue
Block a user