mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-26 14:49:26 +08:00
JSON structure fixes
This commit is contained in:
@@ -149,7 +149,7 @@ function getFilePathsConfigs() {
|
||||
let inputManifestFiles = inputParams.manifests || [];
|
||||
filePathsConfig[MANIFEST_PATHS_KEY] = inputManifestFiles;
|
||||
let helmChartPaths = process.env.HELM_CHART_PATHS || '';
|
||||
filePathsConfig[HELM_CHART_KEY] = helmChartPaths;
|
||||
filePathsConfig[HELM_CHART_KEY] = helmChartPaths.split('\n');
|
||||
//Fetch labels from each image
|
||||
let imageToBuildConfigMap = [];
|
||||
let imageNames = core.getInput('images').split('\n');
|
||||
@@ -190,6 +190,9 @@ function getFilePathsConfigs() {
|
||||
if ((resultObj.Config) && (resultObj.Config.Labels) && (resultObj.Config.Labels[DOCKERFILE_PATH_LABEL_KEY])) {
|
||||
imageToBuildConfigMap[image] = resultObj.Config.Labels[DOCKERFILE_PATH_LABEL_KEY];
|
||||
}
|
||||
else {
|
||||
imageToBuildConfigMap[image] = 'Not available';
|
||||
}
|
||||
}
|
||||
}
|
||||
filePathsConfig[DOCKERFILE_PATH_KEY] = imageToBuildConfigMap;
|
||||
|
||||
Reference in New Issue
Block a user