diff --git a/dist/index.js b/dist/index.js index 24e589bd..5ed56b3b 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/src/index.js b/src/index.js index 93990737..54037766 100644 --- a/src/index.js +++ b/src/index.js @@ -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 }); diff --git a/src/model/docker.js b/src/model/docker.js index 9b15019a..ce9b20e2 100644 --- a/src/model/docker.js +++ b/src/model/docker.js @@ -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 }); } }