Update scripts reference to Dockerfile

This commit is contained in:
Webber
2020-01-07 22:26:15 +01:00
committed by Webber Takken
parent 81a7bbbe88
commit 18488f9b04
5 changed files with 25 additions and 5 deletions
+2 -2
View File
@@ -8,11 +8,11 @@ const core = require('@actions/core');
async function action() {
Action.checkCompatibility();
const { dockerfile, workspace, rootFolder } = Action;
const { dockerfile, workspace, builderFolder } = Action;
const { version, platform, projectPath, buildName, buildsPath, method } = Input.getFromUser();
const baseImage = new ImageTag({ version, platform });
const builtImage = await Docker.build({ path: rootFolder, dockerfile, baseImage });
const builtImage = await Docker.build({ path: builderFolder, dockerfile, baseImage });
await Docker.run(builtImage, { workspace, platform, projectPath, buildName, buildsPath, method });
}