This commit is contained in:
TingluoHuang
2021-10-28 21:07:52 -04:00
parent 80d0b58f3c
commit ca1f621077
2 changed files with 11 additions and 0 deletions

View File

@@ -92,6 +92,10 @@ async function run(): Promise<void> {
] ]
await exec.exec('kubectl', cpKubeInnerArgs) await exec.exec('kubectl', cpKubeInnerArgs)
// copy over _work
const cpWorkArgs = ['cp', '/actions-runner/_work', 'job-container:/__w/']
await exec.exec('kubectl', cpWorkArgs)
const creationOutput = { const creationOutput = {
JobContainerId: 'job-container', JobContainerId: 'job-container',
Network: 'job-container' Network: 'job-container'

View File

@@ -3059,6 +3059,13 @@ function run() {
'job-container:/__runner_util/kubeInnerHandler' 'job-container:/__runner_util/kubeInnerHandler'
]; ];
yield exec.exec('kubectl', cpKubeInnerArgs); yield exec.exec('kubectl', cpKubeInnerArgs);
// copy over _work
const cpWorkArgs = [
'cp',
'/actions-runner/_work',
'job-container:/__w/'
];
yield exec.exec('kubectl', cpWorkArgs);
const creationOutput = { const creationOutput = {
JobContainerId: 'job-container', JobContainerId: 'job-container',
Network: 'job-container' Network: 'job-container'