Update createHelmYaml.sh
All checks were successful
Build docker container / Build image (push) Successful in 1m42s

This commit is contained in:
ties 2025-03-17 15:23:12 +00:00
parent 43e403cd84
commit bee8e757d1

View File

@ -46,7 +46,7 @@ function deployRaw(){
}
function printHelm(){
helm dependency build ${REPO_PATH:-.}
helm dependency build .
helm dependency list
helm template -g . --set-json="chart_template.subchartData=$(yq '.dependencies[] | select(.condition == "subchart")' Chart.yaml -ojson | jq -rc)"
}
@ -66,9 +66,8 @@ function packageHelm(){
false
exit 1
fi
ls -1 ${REPO_PATH:-.}
cat ${REPO_PATH:-.}/Chart.yaml
helm package ${REPO_PATH:-.}
cd ${REPO_PATH:-.}
helm package .
helmPackage="$(yq '.name' Chart.yaml)-$(yq '.version' Chart.yaml)"
curl --user "$REPO_SECRET" -X POST --upload-file ./$helmPackage.tgz https://git.ties.one/api/packages/public/helm/api/charts