ci: render

Rendered by https://gitlab.com/developerdurp/yml/-/pipelines/873841856
This commit is contained in:
2023-05-21 13:22:24 +00:00
parent a0505c1891
commit 8462bc5317
4 changed files with 113 additions and 0 deletions

26
jobs/helm.yml Normal file
View File

@@ -0,0 +1,26 @@
.helm-createchart:
image: registry.durp.info/dtzar/helm-kubectl
stage: build
script:
# Begin of helm-addrepo.sh
- |
#Helm repo add
helm repo add --username gitlab-ci-token --password ${CI_JOB_TOKEN} ${CI_PROJECT_NAME} ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/stable
# End of helm-addrepo.sh
# Begin of helm-package.sh
- |
#Helm Package
for chart in charts/*; do
if [ -d "$chart" ]; then
helm package "$chart" -d ./packages --version ${VERSION}
fi
done
# End of helm-package.sh
# Begin of helm-push.sh
- "#Helm Push \n \nhelm plugin install https://github.com/chartmuseum/helm-push\nfor chart in packages/*; do\n helm cm-push ./$chart ${CI_PROJECT_NAME}\ndone\n"
# End of helm-push.sh
needs:
- job: version
artifacts: true