mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
Remove console statements
This commit is contained in:
parent
5abc3164f9
commit
948a53575b
BIN
dist/index.js
vendored
BIN
dist/index.js
vendored
Binary file not shown.
@ -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 });
|
||||
|
||||
|
@ -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 });
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user