JSON structure fixes

This commit is contained in:
Jyotsna
2020-11-23 15:15:26 +05:30
parent d953c709a5
commit 27085d52d5
4 changed files with 20 additions and 10 deletions
+6 -2
View File
@@ -148,8 +148,12 @@ function getFilePathsConfigs() {
const DOCKERFILE_PATH_LABEL_KEY = 'dockerfile-path';
let inputManifestFiles = inputParams.manifests || [];
filePathsConfig[MANIFEST_PATHS_KEY] = inputManifestFiles;
let helmChartPaths = process.env.HELM_CHART_PATHS || '';
filePathsConfig[HELM_CHART_KEY] = helmChartPaths.split('\n');
let helmChartPaths = [];
if (process.env.HELM_CHART_PATHS) {
helmChartPaths = process.env.HELM_CHART_PATHS.split('\n');
helmChartPaths.filter(val => val != "");
}
filePathsConfig[HELM_CHART_KEY] = helmChartPaths;
//Fetch labels from each image
let imageNames = core.getInput('images').split('\n');
let imageDockerfilePathList = [];