fix(ci): Ensure all Apps have a synced HelmIgnore file

This commit is contained in:
Kjeld Schouten-Lebbing 2022-07-14 15:45:54 +02:00
parent 6b54626760
commit f015ed29fb
No known key found for this signature in database
GPG Key ID: 3D586240A9175B99
2 changed files with 16 additions and 0 deletions

View File

@ -29,6 +29,17 @@ sync_tag() {
}
export -f sync_tag
sync_helmignore() {
local chart="$1"
local chartname="$2"
local train="$3"
local chartversion="$4"
echo "Attempting to sync HelmIgnore file for: ${chartname}"
rm -rf ${chart}/.helmingore
cp templates/app/.helmingore ${chart}/
}
export -f sync_helmignore
create_changelog() {
local chart="$1"
local chartname="$2"
@ -73,6 +84,7 @@ if [[ -d "charts/${1}" ]]; then
chartname=$(basename charts/${1})
train=$(basename $(dirname "charts/${1}"))
SCALESUPPORT=$(cat charts/${1}/Chart.yaml | yq '.annotations."truecharts.org/SCALE-support"' -r)
sync_helmignore "charts/${1}" "${chartname}" "$train" "${chartversion}" || echo "Syncing HelmIgnore file failed..."
helm dependency update "charts/${1}" --skip-refresh || (sleep 10 && helm dependency update "charts/${1}" --skip-refresh) || (sleep 10 && helm dependency update "charts/${1}" --skip-refresh)
sync_tag "charts/${1}" "${chartname}" "$train" "${chartversion}" || echo "Tag sync failed..."
create_changelog "charts/${1}" "${chartname}" "$train" "${chartversion}" || echo "changelog generation failed..."

View File

@ -24,3 +24,7 @@
OWNERS
# helm-docs templates
*.gotmpl
# docs folder
/docs
# icon
icon.png