Copy cloud runner cache into github workspace directory
parent
d950f8b6ef
commit
a265b507a6
|
|
@ -3635,11 +3635,11 @@ class LocalDockerCloudRunner {
|
|||
const entrypointFilePath = `start.sh`;
|
||||
fs_1.writeFileSync(`${workspace}/${entrypointFilePath}`, `#!/bin/bash
|
||||
set -e
|
||||
mkdir -p /github/workflow/cloud-runner-cache
|
||||
mkdir -p /github/workspace/cloud-runner-cache
|
||||
mkdir -p /data/cache
|
||||
cp /github/workflow/cloud-runner-cache/* /data/cache
|
||||
cp -r /github/workspace/cloud-runner-cache /data/cache
|
||||
${commands}
|
||||
cp /data/cache/* /github/workflow/cloud-runner-cache`, {
|
||||
cp -r /data/cache /github/workspace/cloud-runner-cache`, {
|
||||
flag: 'w',
|
||||
});
|
||||
yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, this.buildParameters), false, `"chmod +x /github/workspace/${entrypointFilePath} && /github/workspace/${entrypointFilePath}"`, content, {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -91,11 +91,11 @@ class LocalDockerCloudRunner implements ProviderInterface {
|
|||
`${workspace}/${entrypointFilePath}`,
|
||||
`#!/bin/bash
|
||||
set -e
|
||||
mkdir -p /github/workflow/cloud-runner-cache
|
||||
mkdir -p /github/workspace/cloud-runner-cache
|
||||
mkdir -p /data/cache
|
||||
cp /github/workflow/cloud-runner-cache/* /data/cache
|
||||
cp -r /github/workspace/cloud-runner-cache /data/cache
|
||||
${commands}
|
||||
cp /data/cache/* /github/workflow/cloud-runner-cache`,
|
||||
cp -r /data/cache /github/workspace/cloud-runner-cache`,
|
||||
{
|
||||
flag: 'w',
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue