cache test should explicitly check cache key from build 1 is included in results log
parent
870b6eabf8
commit
095539b0e2
|
|
@ -3651,11 +3651,11 @@ class LocalDockerCloudRunner {
|
||||||
}
|
}
|
||||||
let myOutput = '';
|
let myOutput = '';
|
||||||
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
||||||
const entrypointFilePath = `${workspace}/start.sh`;
|
const entrypointFilePath = `start.sh`;
|
||||||
fs_1.writeFileSync(entrypointFilePath, commands, {
|
fs_1.writeFileSync(`${workspace}/${entrypointFilePath}`, commands, {
|
||||||
flag: 'w',
|
flag: 'w',
|
||||||
});
|
});
|
||||||
yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, this.buildParameters), false, `"ls && ls ./.. && ${entrypointFilePath}"`, content, {
|
yield docker_1.default.run(image, Object.assign({ workspace, actionFolder }, this.buildParameters), false, entrypointFilePath, content, {
|
||||||
listeners: {
|
listeners: {
|
||||||
stdout: (data) => {
|
stdout: (data) => {
|
||||||
myOutput += data.toString();
|
myOutput += data.toString();
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -84,28 +84,21 @@ class LocalDockerCloudRunner implements ProviderInterface {
|
||||||
let myOutput = '';
|
let myOutput = '';
|
||||||
|
|
||||||
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
||||||
const entrypointFilePath = `${workspace}/start.sh`;
|
const entrypointFilePath = `start.sh`;
|
||||||
writeFileSync(entrypointFilePath, commands, {
|
writeFileSync(`${workspace}/${entrypointFilePath}`, commands, {
|
||||||
flag: 'w',
|
flag: 'w',
|
||||||
});
|
});
|
||||||
|
|
||||||
await Docker.run(
|
await Docker.run(image, { workspace, actionFolder, ...this.buildParameters }, false, entrypointFilePath, content, {
|
||||||
image,
|
listeners: {
|
||||||
{ workspace, actionFolder, ...this.buildParameters },
|
stdout: (data: Buffer) => {
|
||||||
false,
|
myOutput += data.toString();
|
||||||
`"ls && ls ./.. && ${entrypointFilePath}"`,
|
},
|
||||||
content,
|
stderr: (data: Buffer) => {
|
||||||
{
|
myOutput += `[LOCAL-DOCKER-ERROR]${data.toString()}`;
|
||||||
listeners: {
|
|
||||||
stdout: (data: Buffer) => {
|
|
||||||
myOutput += data.toString();
|
|
||||||
},
|
|
||||||
stderr: (data: Buffer) => {
|
|
||||||
myOutput += `[LOCAL-DOCKER-ERROR]${data.toString()}`;
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
);
|
});
|
||||||
|
|
||||||
return myOutput;
|
return myOutput;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue