mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-04-15 02:52:20 +08:00
JSON structure fixes
This commit is contained in:
parent
ba95de9cac
commit
d953c709a5
@ -38,9 +38,9 @@ function getWorkflowAnnotationsJson(lastSuccessRunSha, workflowFilePath, filePat
|
|||||||
+ `'lastSuccessRunCommit': '${lastSuccessRunSha}',`
|
+ `'lastSuccessRunCommit': '${lastSuccessRunSha}',`
|
||||||
+ `'branch': '${process.env.GITHUB_REF}',`
|
+ `'branch': '${process.env.GITHUB_REF}',`
|
||||||
+ `'deployTimestamp': '${Date.now()}',`
|
+ `'deployTimestamp': '${Date.now()}',`
|
||||||
+ `'dockerfilePaths': '${filePathConfigs.dockerfilePaths}',`
|
+ `'dockerfilePaths': '${JSON.stringify(filePathConfigs.dockerfilePaths)}',`
|
||||||
+ `'manifestsPaths': '${filePathConfigs.manifestFilePaths}',`
|
+ `'manifestsPaths': '${JSON.stringify(filePathConfigs.manifestFilePaths)}',`
|
||||||
+ `'helmChartPaths': '${filePathConfigs.helmChartPaths}',`
|
+ `'helmChartPaths': '${JSON.stringify(filePathConfigs.helmChartFilePaths)}',`
|
||||||
+ `'provider': 'GitHub'`
|
+ `'provider': 'GitHub'`
|
||||||
+ `}`;
|
+ `}`;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -38,9 +38,9 @@ export function getWorkflowAnnotationsJson(lastSuccessRunSha: string, workflowFi
|
|||||||
+ `'lastSuccessRunCommit': '${lastSuccessRunSha}',`
|
+ `'lastSuccessRunCommit': '${lastSuccessRunSha}',`
|
||||||
+ `'branch': '${process.env.GITHUB_REF}',`
|
+ `'branch': '${process.env.GITHUB_REF}',`
|
||||||
+ `'deployTimestamp': '${Date.now()}',`
|
+ `'deployTimestamp': '${Date.now()}',`
|
||||||
+ `'dockerfilePaths': '${filePathConfigs.dockerfilePaths}',`
|
+ `'dockerfilePaths': '${JSON.stringify(filePathConfigs.dockerfilePaths)}',`
|
||||||
+ `'manifestsPaths': '${filePathConfigs.manifestFilePaths}',`
|
+ `'manifestsPaths': '${JSON.stringify(filePathConfigs.manifestFilePaths)}',`
|
||||||
+ `'helmChartPaths': '${filePathConfigs.helmChartPaths}',`
|
+ `'helmChartPaths': '${JSON.stringify(filePathConfigs.helmChartFilePaths)}',`
|
||||||
+ `'provider': 'GitHub'`
|
+ `'provider': 'GitHub'`
|
||||||
+ `}`;
|
+ `}`;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user