fix: correctly copy license on release and allow removing them

This commit is contained in:
kjeld Schouten-Lebbing 2021-09-08 16:53:08 +02:00
parent f1d221b354
commit 5a41184022
No known key found for this signature in database
GPG Key ID: 4CDAD4A532BC1EDB
1 changed files with 2 additions and 0 deletions

View File

@ -247,6 +247,8 @@ copy_docs() {
yes | cp -rf ${chart}/CHANGELOG.md docs/apps/${train}/${chartname}/CHANGELOG.md 2>/dev/null || :
yes | cp -rf ${chart}/CONFIG.md docs/apps/${train}/${chartname}/CONFIG.md 2>/dev/null || :
yes | cp -rf ${chart}/helm-values.md docs/apps/${train}/${chartname}/helm-values.md 2>/dev/null || :
rm docs/apps/${train}/${chartname}/LICENSE.md 2>/dev/null || :
yes | cp -rf ${chart}/LICENSE docs/apps/${train}/${chartname}/LICENSE.md 2>/dev/null || :
sed -i '1s/^/# License<br>\n\n/' docs/apps/${train}/${chartname}/LICENSE.md 2>/dev/null || :
fi
}