Remove console statements

This commit is contained in:
Webber
2019-12-22 22:24:46 +01:00
committed by Webber Takken
parent 5abc3164f9
commit 948a53575b
3 changed files with 6 additions and 18 deletions

View File

@@ -17,21 +17,10 @@ export default class Docker {
return tag;
}
static async run(image, parameters) {
static async run(image, parameters, silent = false) {
const { workspace, platform, projectPath, buildName, buildsPath, method } = parameters;
console.log('running with parameters: ');
console.log({
workspace,
platform,
projectPath,
buildName,
buildsPath,
method,
});
await exec(`\
docker run \
const command = `docker run \
--workdir /github/workspace \
--rm \
--env PROJECT_PATH=${projectPath} \
@@ -59,7 +48,8 @@ export default class Docker {
--volume "/home/runner/work/_temp/_github_home":"/github/home" \
--volume "/home/runner/work/_temp/_github_workflow":"/github/workflow" \
--volume "${workspace}":"/github/workspace" \
${image} \
`);
${image}`;
await exec(command, null, { silent });
}
}