Initial commit
- update else condition on the line 239 in templates/Deployment - update st-common version from 0.1.10 to 0.1.12 on Chart.yaml file - add gitlab ci/cd pipeline to package the Helm chart into a .tgz. and Publish it to GitLab’s Helm package registry
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
default:
|
||||
tags:
|
||||
- docker-test
|
||||
|
||||
stages:
|
||||
- package
|
||||
- publish
|
||||
|
||||
variables:
|
||||
CHART_NAME: "freeradius"
|
||||
CHART_VERSION: "1.0.3"
|
||||
PACKAGE_PATH: "packages"
|
||||
HELM_EXPERIMENTAL_OCI: "1"
|
||||
|
||||
package_chart:
|
||||
stage: package
|
||||
image:
|
||||
name: alpine/helm:3.14.0
|
||||
entrypoint: [""]
|
||||
script:
|
||||
- helm repo add startechnica https://startechnica.github.io/apps
|
||||
- helm dependency build .
|
||||
- mkdir -p $PACKAGE_PATH
|
||||
- helm package . --destination $PACKAGE_PATH
|
||||
artifacts:
|
||||
paths:
|
||||
- ${PACKAGE_PATH}/${CHART_NAME}-${CHART_VERSION}.tgz
|
||||
|
||||
|
||||
publish_chart:
|
||||
stage: publish
|
||||
image: alpine/curl:8.14.1
|
||||
script:
|
||||
- |
|
||||
curl --fail-with-body --request POST \
|
||||
--user gitlab-ci-token:$CI_JOB_TOKEN \
|
||||
--form "chart=@${PACKAGE_PATH}/${CHART_NAME}-${CHART_VERSION}.tgz" \
|
||||
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"
|
||||
only:
|
||||
- main
|
||||
Reference in New Issue
Block a user