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 5 additions and 17 deletions

BIN
dist/index.js vendored

Binary file not shown.

View File

@ -11,8 +11,6 @@ async function action() {
const { dockerfile, workspace } = Action;
const { version, platform, projectPath, buildName, buildsPath, method } = Input.getFromUser();
console.log({ version, platform, projectPath, buildName, buildsPath, method });
const baseImage = new ImageTag({ version, platform });
const builtImage = await Docker.build({ path: workspace, dockerfile, baseImage });

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 });
}
}