Fix build path

This commit is contained in:
Webber 2020-01-06 23:15:09 +01:00 committed by Webber Takken
parent 948a53575b
commit 5952e3d2f6
2 changed files with 2 additions and 2 deletions

BIN
dist/index.js vendored

Binary file not shown.

View File

@ -8,11 +8,11 @@ const core = require('@actions/core');
async function action() {
Action.checkCompatibility();
const { dockerfile, workspace } = Action;
const { dockerfile, workspace, rootFolder } = Action;
const { version, platform, projectPath, buildName, buildsPath, method } = Input.getFromUser();
const baseImage = new ImageTag({ version, platform });
const builtImage = await Docker.build({ path: workspace, dockerfile, baseImage });
const builtImage = await Docker.build({ path: rootFolder, dockerfile, baseImage });
await Docker.run(builtImage, { workspace, platform, projectPath, buildName, buildsPath, method });
}