mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-04-12 01:15:09 +08:00
JSON structure fixes
This commit is contained in:
parent
aee2875fcd
commit
e4319ffe29
@ -148,11 +148,7 @@ function getFilePathsConfigs() {
|
|||||||
const DOCKERFILE_PATH_LABEL_KEY = 'dockerfile-path';
|
const DOCKERFILE_PATH_LABEL_KEY = 'dockerfile-path';
|
||||||
let inputManifestFiles = inputParams.manifests || [];
|
let inputManifestFiles = inputParams.manifests || [];
|
||||||
filePathsConfig[MANIFEST_PATHS_KEY] = inputManifestFiles;
|
filePathsConfig[MANIFEST_PATHS_KEY] = inputManifestFiles;
|
||||||
let helmChartPaths = [];
|
let helmChartPaths = process.env.HELM_CHART_PATHS && process.env.HELM_CHART_PATHS.split('\n').splice(-1) || [];
|
||||||
if (process.env.HELM_CHART_PATHS) {
|
|
||||||
helmChartPaths = process.env.HELM_CHART_PATHS.split('\n');
|
|
||||||
helmChartPaths.splice(-1);
|
|
||||||
}
|
|
||||||
filePathsConfig[HELM_CHART_KEY] = helmChartPaths;
|
filePathsConfig[HELM_CHART_KEY] = helmChartPaths;
|
||||||
//Fetch labels from each image
|
//Fetch labels from each image
|
||||||
let imageNames = core.getInput('images').split('\n');
|
let imageNames = core.getInput('images').split('\n');
|
||||||
|
|||||||
@ -141,12 +141,7 @@ export async function getFilePathsConfigs(): Promise<any> {
|
|||||||
let inputManifestFiles = inputParams.manifests || [];
|
let inputManifestFiles = inputParams.manifests || [];
|
||||||
filePathsConfig[MANIFEST_PATHS_KEY] = inputManifestFiles;
|
filePathsConfig[MANIFEST_PATHS_KEY] = inputManifestFiles;
|
||||||
|
|
||||||
let helmChartPaths = [];
|
let helmChartPaths = process.env.HELM_CHART_PATHS && process.env.HELM_CHART_PATHS.split('\n').splice(-1) || [];
|
||||||
if(process.env.HELM_CHART_PATHS){
|
|
||||||
helmChartPaths = process.env.HELM_CHART_PATHS.split('\n');
|
|
||||||
helmChartPaths.splice(-1);
|
|
||||||
}
|
|
||||||
|
|
||||||
filePathsConfig[HELM_CHART_KEY] = helmChartPaths;
|
filePathsConfig[HELM_CHART_KEY] = helmChartPaths;
|
||||||
|
|
||||||
//Fetch labels from each image
|
//Fetch labels from each image
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user