From 4da86321ca1e0021f454bc5bf6f898240f763f8a Mon Sep 17 00:00:00 2001 From: Koushik Dey Date: Wed, 21 Oct 2020 15:53:28 +0530 Subject: [PATCH] adding spike env var --- lib/login.js | 3 +-- package.json | 2 +- src/login.ts | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/login.js b/lib/login.js index c6f5eff..902dba1 100644 --- a/lib/login.js +++ b/lib/login.js @@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.run = void 0; const core = require("@actions/core"); const path = require("path"); const fs = require("fs"); @@ -114,9 +113,9 @@ function run() { fs.writeFileSync(kubeconfigPath, kubeconfig); fs.chmodSync(kubeconfigPath, '600'); core.exportVariable('KUBECONFIG', kubeconfigPath); + core.exportVariable('DockerFilePath', 'DockerFilePath/from/input'); console.log('KUBECONFIG environment variable is set'); yield setContext(kubeconfigPath); }); } -exports.run = run; run().catch(core.setFailed); diff --git a/package.json b/package.json index bc7cb18..1a16f85 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "main": "lib/run.js", "scripts": { - "build": "tsc --outDir .\\lib\\ --rootDir .\\src\\" + "build": "tsc --outDir ./lib/ --rootDir ./src/" }, "keywords": [ "actions", diff --git a/src/login.ts b/src/login.ts index 62026ae..9960fd0 100644 --- a/src/login.ts +++ b/src/login.ts @@ -109,6 +109,7 @@ async function run() { fs.writeFileSync(kubeconfigPath, kubeconfig); fs.chmodSync(kubeconfigPath, '600'); core.exportVariable('KUBECONFIG', kubeconfigPath); + core.exportVariable('DockerFilePath', 'DockerFilePath/from/input'); console.log('KUBECONFIG environment variable is set'); await setContext(kubeconfigPath); }