Copy cloud runner cache into github workspace directory
parent
48149e70a9
commit
d950f8b6ef
|
|
@ -3635,11 +3635,11 @@ class LocalDockerCloudRunner {
|
||||||
const entrypointFilePath = `start.sh`;
|
const entrypointFilePath = `start.sh`;
|
||||||
fs_1.writeFileSync(`${workspace}/${entrypointFilePath}`, `#!/bin/bash
|
fs_1.writeFileSync(`${workspace}/${entrypointFilePath}`, `#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
mkdir -p /github/workspace/cloud-runner-cache
|
mkdir -p /github/workflow/cloud-runner-cache
|
||||||
mkdir -p /data/cache
|
mkdir -p /data/cache
|
||||||
cp /github/workspace/cloud-runner-cache/* /data/cache
|
cp /github/workflow/cloud-runner-cache/* /data/cache
|
||||||
${commands}
|
${commands}
|
||||||
cp /data/cache/* /github/workspace/cloud-runner-cache`, {
|
cp /data/cache/* /github/workflow/cloud-runner-cache`, {
|
||||||
flag: 'w',
|
flag: 'w',
|
||||||
});
|
});
|
||||||
yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, this.buildParameters), false, `"chmod +x /github/workspace/${entrypointFilePath} && /github/workspace/${entrypointFilePath}"`, content, {
|
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}`,
|
`${workspace}/${entrypointFilePath}`,
|
||||||
`#!/bin/bash
|
`#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
mkdir -p /github/workspace/cloud-runner-cache
|
mkdir -p /github/workflow/cloud-runner-cache
|
||||||
mkdir -p /data/cache
|
mkdir -p /data/cache
|
||||||
cp /github/workspace/cloud-runner-cache/* /data/cache
|
cp /github/workflow/cloud-runner-cache/* /data/cache
|
||||||
${commands}
|
${commands}
|
||||||
cp /data/cache/* /github/workspace/cloud-runner-cache`,
|
cp /data/cache/* /github/workflow/cloud-runner-cache`,
|
||||||
{
|
{
|
||||||
flag: 'w',
|
flag: 'w',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue