Copy cloud runner cache into github workspace directory
parent
ee940bd073
commit
9921b65ebc
|
|
@ -3635,11 +3635,16 @@ 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
|
||||||
|
|
||||||
|
apt-get update > /dev/null && apt-get install -y tree> /dev/null
|
||||||
mkdir -p /github/workspace/cloud-runner-cache
|
mkdir -p /github/workspace/cloud-runner-cache
|
||||||
mkdir -p /data/cache
|
mkdir -p /data/cache
|
||||||
cp -r /github/workspace/cloud-runner-cache /data/cache
|
cp -r /github/workspace/cloud-runner-cache /data/cache
|
||||||
|
tree -L 2 /data/cache
|
||||||
${commands}
|
${commands}
|
||||||
cp -r /data/cache /github/workspace/cloud-runner-cache`, {
|
cp -r /data/cache /github/workspace/cloud-runner-cache
|
||||||
|
tree -L 2 /github/workspace/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,16 @@ class LocalDockerCloudRunner implements ProviderInterface {
|
||||||
`${workspace}/${entrypointFilePath}`,
|
`${workspace}/${entrypointFilePath}`,
|
||||||
`#!/bin/bash
|
`#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
apt-get update > /dev/null && apt-get install -y tree> /dev/null
|
||||||
mkdir -p /github/workspace/cloud-runner-cache
|
mkdir -p /github/workspace/cloud-runner-cache
|
||||||
mkdir -p /data/cache
|
mkdir -p /data/cache
|
||||||
cp -r /github/workspace/cloud-runner-cache /data/cache
|
cp -r /github/workspace/cloud-runner-cache /data/cache
|
||||||
|
tree -L 2 /data/cache
|
||||||
${commands}
|
${commands}
|
||||||
cp -r /data/cache /github/workspace/cloud-runner-cache`,
|
cp -r /data/cache /github/workspace/cloud-runner-cache
|
||||||
|
tree -L 2 /github/workspace/cloud-runner-cache
|
||||||
|
`,
|
||||||
{
|
{
|
||||||
flag: 'w',
|
flag: 'w',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue