mirror of
https://github.com/actions/runner.git
synced 2025-12-14 13:43:33 +00:00
.
This commit is contained in:
1
.github/workflows/docker-image.yml
vendored
1
.github/workflows/docker-image.yml
vendored
@@ -1,6 +1,7 @@
|
|||||||
name: Docker Image CI
|
name: Docker Image CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ async function run(): Promise<void> {
|
|||||||
// copy over node.js
|
// copy over node.js
|
||||||
const cpNodeArgs = [
|
const cpNodeArgs = [
|
||||||
'cp',
|
'cp',
|
||||||
'../externals/node16/bin',
|
'/actions-runner/externals/node16/bin',
|
||||||
'job-container:/__runner_util/'
|
'job-container:/__runner_util/'
|
||||||
]
|
]
|
||||||
await exec.exec('kubectl', cpNodeArgs)
|
await exec.exec('kubectl', cpNodeArgs)
|
||||||
@@ -84,14 +84,14 @@ async function run(): Promise<void> {
|
|||||||
// copy over innerhandler
|
// copy over innerhandler
|
||||||
const cpKubeInnerArgs = [
|
const cpKubeInnerArgs = [
|
||||||
'cp',
|
'cp',
|
||||||
'./kubeInnerHandler',
|
'/actions-runner/bin/kubeInnerHandler',
|
||||||
'job-container:/__runner_util/kubeInnerHandler'
|
'job-container:/__runner_util/kubeInnerHandler'
|
||||||
]
|
]
|
||||||
await exec.exec('kubectl', cpKubeInnerArgs)
|
await 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})
|
||||||
|
|||||||
@@ -3044,13 +3044,22 @@ function run() {
|
|||||||
// get PATH inside the container
|
// get PATH inside the container
|
||||||
// output containerId for ${{job.container.id}}
|
// output containerId for ${{job.container.id}}
|
||||||
// copy over node.js
|
// copy over node.js
|
||||||
const cpNodeArgs = ['cp', '../externals/node16/bin', 'job-container:/__runner_util/'];
|
const cpNodeArgs = [
|
||||||
|
'cp',
|
||||||
|
'/actions-runner/externals/node16/bin',
|
||||||
|
'job-container:/__runner_util/'
|
||||||
|
];
|
||||||
yield exec.exec('kubectl', cpNodeArgs);
|
yield exec.exec('kubectl', cpNodeArgs);
|
||||||
// copy over innerhandler
|
// copy over innerhandler
|
||||||
const cpKubeInnerArgs = ['cp', './kubeInnerHandler', 'job-container:/__runner_util/kubeInnerHandler'];
|
const cpKubeInnerArgs = [
|
||||||
|
'cp',
|
||||||
|
'/actions-runner/bin/kubeInnerHandler',
|
||||||
|
'job-container:/__runner_util/kubeInnerHandler'
|
||||||
|
];
|
||||||
yield exec.exec('kubectl', cpKubeInnerArgs);
|
yield exec.exec('kubectl', cpKubeInnerArgs);
|
||||||
const creationOutput = {
|
const creationOutput = {
|
||||||
JobContainerId: "job-container",
|
JobContainerId: 'job-container',
|
||||||
|
Network: "job-container"
|
||||||
};
|
};
|
||||||
const output = JSON.stringify({ CreationOutput: creationOutput });
|
const output = JSON.stringify({ CreationOutput: creationOutput });
|
||||||
core.debug(output);
|
core.debug(output);
|
||||||
@@ -3085,7 +3094,9 @@ function run() {
|
|||||||
execArgs.push('/__runner_util/node');
|
execArgs.push('/__runner_util/node');
|
||||||
execArgs.push('/__runner_util/kubeInnerHandler');
|
execArgs.push('/__runner_util/kubeInnerHandler');
|
||||||
core.debug(JSON.stringify(execArgs));
|
core.debug(JSON.stringify(execArgs));
|
||||||
yield exec.exec('kubectl', execArgs, { input: Buffer.from(JSON.stringify(execInput)) });
|
yield exec.exec('kubectl', execArgs, {
|
||||||
|
input: Buffer.from(JSON.stringify(execInput))
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user