fix: make sure common can also build releases

This commit is contained in:
kjeld Schouten-Lebbing 2021-09-08 19:58:11 +02:00
parent 431eca3bb6
commit b94d3c0d0f
No known key found for this signature in database
GPG Key ID: 4CDAD4A532BC1EDB
1 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ main() {
copy_docs "$chart" "$chartname" "$train" "$chartversion" copy_docs "$chart" "$chartname" "$train" "$chartversion"
helm dependency update "${chart}" --skip-refresh helm dependency update "${chart}" --skip-refresh
package_chart "$chart" package_chart "$chart"
if [[ -d "${chart}/SCALE" ]]; then if [[ -f "${chart}/SCALE/item.yaml" ]]; then
clean_apps "$chart" "$chartname" "$train" "$chartversion" clean_apps "$chart" "$chartname" "$train" "$chartversion"
copy_apps "$chart" "$chartname" "$train" "$chartversion" copy_apps "$chart" "$chartname" "$train" "$chartversion"
patch_apps "$chart" "$chartname" "$train" "$chartversion" patch_apps "$chart" "$chartname" "$train" "$chartversion"
@ -199,12 +199,12 @@ generate_docs() {
--ignore-file=".helmdocsignore" \ --ignore-file=".helmdocsignore" \
--output-file="README.md" \ --output-file="README.md" \
--template-files="/__w/apps/apps/templates/docs/common-README.md.gotmpl" \ --template-files="/__w/apps/apps/templates/docs/common-README.md.gotmpl" \
--chart-search-root="/home/runner/work/apps/apps/charts/library/common" --chart-search-root="${chart}"
helm-docs \ helm-docs \
--ignore-file=".helmdocsignore" \ --ignore-file=".helmdocsignore" \
--output-file="helm-values.md" \ --output-file="helm-values.md" \
--template-files="/__w/apps/apps/templates/docs/common-helm-values.md.gotmpl" \ --template-files="/__w/apps/apps/templates/docs/common-helm-values.md.gotmpl" \
--chart-search-root="/home/runner/work/apps/apps/charts/library/common" --chart-search-root="${chart}"
else else
helm-docs \ helm-docs \
--ignore-file=".helmdocsignore" \ --ignore-file=".helmdocsignore" \