no dockerfile anymore
parent
a48af4b185
commit
aaeda21ebb
|
|
@ -8,7 +8,7 @@ async function runMain() {
|
|||
Action.checkCompatibility();
|
||||
Cache.verify();
|
||||
|
||||
const { dockerfile, workspace, actionFolder } = Action;
|
||||
const { workspace, actionFolder } = Action;
|
||||
|
||||
const buildParameters = await BuildParameters.create();
|
||||
const baseImage = new ImageTag(buildParameters);
|
||||
|
|
|
|||
|
|
@ -30,11 +30,4 @@ describe('Action', () => {
|
|||
expect(path.basename(actionFolder)).toStrictEqual('dist');
|
||||
expect(fs.existsSync(actionFolder)).toStrictEqual(true);
|
||||
});
|
||||
|
||||
it('returns the docker file', () => {
|
||||
const { dockerfile } = Action;
|
||||
|
||||
expect(path.basename(dockerfile)).toStrictEqual('Dockerfile');
|
||||
expect(fs.existsSync(dockerfile)).toStrictEqual(true);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -29,20 +29,6 @@ class Action {
|
|||
return `${Action.rootFolder}/dist`;
|
||||
}
|
||||
|
||||
static get dockerfile() {
|
||||
const currentPlatform = process.platform;
|
||||
switch (currentPlatform) {
|
||||
case 'linux':
|
||||
return `${Action.actionFolder}/platforms/ubuntu/Dockerfile`;
|
||||
case 'win32':
|
||||
return `${Action.actionFolder}/platforms/windows/Dockerfile`;
|
||||
case 'darwin':
|
||||
return 'unused'; //Mac doesn't use a container
|
||||
default:
|
||||
throw new Error(`No Dockerfile for currently unsupported platform: ${currentPlatform}`);
|
||||
}
|
||||
}
|
||||
|
||||
static get workspace() {
|
||||
return process.env.GITHUB_WORKSPACE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue