From aaeda21ebb51349147fef66aa37131a4f835ae04 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Wed, 30 Mar 2022 17:58:57 -0500 Subject: [PATCH] no dockerfile anymore --- src/index.ts | 2 +- src/model/action.test.ts | 7 ------- src/model/action.ts | 14 -------------- 3 files changed, 1 insertion(+), 22 deletions(-) diff --git a/src/index.ts b/src/index.ts index e2fbafce..8459f9fd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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); diff --git a/src/model/action.test.ts b/src/model/action.test.ts index f537f298..76fef312 100644 --- a/src/model/action.test.ts +++ b/src/model/action.test.ts @@ -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); - }); }); diff --git a/src/model/action.ts b/src/model/action.ts index 06ee1ccd..28d07963 100644 --- a/src/model/action.ts +++ b/src/model/action.ts @@ -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; }