diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f9a94ced3017eb3e4a4af528e4c35426ad599d13..c31e5c109d6a87c1c493f78334f6982de9d33ac9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,7 @@ include: - remote: https://open.greenhost.net/stackspin/stackspin/raw/main/.gitlab/ci_templates/kaniko.yml + - remote: https://open.greenhost.net/stackspin/stackspin/-/raw/main/.gitlab/ci_templates/helm_package.yml + - template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml' stages: - build @@ -7,6 +9,13 @@ stages: # TODO: Re-enable after fixing #73 # - application-test - integration-test + - lint-helm-chart + - package-helm-chart + - release-helm-chart + +variables: + CHART_NAME: single-sign-on + CHART_DIR: helmchart/single-sign-on/ #login_test: # image: python:3.8 diff --git a/docs/helmchart.md b/docs/helmchart.md index 7bca15d926ce8d86ebc5ad2336842554ecd24eaa..495947838e3960d821fbb8bdbdd13bc323a861c7 100644 --- a/docs/helmchart.md +++ b/docs/helmchart.md @@ -146,25 +146,25 @@ grantTypes: ## Installing and uninstalling the Chart -To install the chart with the realease name `single-sign-on` first clone the repository, -and then run helm install. +To install the chart, add our helm repository[^1] and run the installation: ``` -$ git clone https://open.greenhost.net/stackspin/single-sign-on -$ cd single-sign-on/helmchart/single-sign-on/ -$ helm install -n single-sign-on . +# helm repo add single-sign-on https://open.greenhost.net/api/v4/projects/8/packages/helm/api/stable +$ helm install -n single-sign-on single-sign-on/single-sign-on ``` The last command will deploy the single sign-on components on your server and applies a default configuration. You should change the default configuration before running the command. + The [configuration](#configuration) section lists all configuration parameters. In case you already ran the install command, you can uninstall the deployment by executing: ``` $ helm list # [OPTIONAL] - Lists all deployed releases -$ helm delete single-sign-on --purge +$ helm delete single-sign-on ``` -> **WARNING**: Executing the `delete` command with the `purge` flag will delete all data that is related to the applications. Don't run this command in a production environment if you are not absolutely sure that you have a restorable backup of your data. +> **WARNING**: Executing the `delete` command will delete all data that is related to the applications. Don't run this command in a production environment if you are not absolutely sure that you have a restorable backup of your data. +[^1]: If you want to test a version that is not on the `main` branch yet, use `https://open.greenhost.net/api/v4/projects/8/packages/helm/unstable` diff --git a/helmchart/single-sign-on/CHANGELOG.md b/helmchart/single-sign-on/CHANGELOG.md index f3e1c2ac71ea269b1c2db242ee630f56f36b55f1..bba2ad3f9bf38aa152a964d51597bfd41f8cbd9d 100644 --- a/helmchart/single-sign-on/CHANGELOG.md +++ b/helmchart/single-sign-on/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this helm chart will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.5.1] - 2021-12-21 + +- Host chart on Helm Repository: https://open.greenhost.net/api/v4/projects/8/packages/helm/api/stable + ## [0.5.0] - 2021-12-10 - Migrate ingress to networking.k8s.io/v1 API, needed for k8s >= 1.22 diff --git a/helmchart/single-sign-on/Chart.yaml b/helmchart/single-sign-on/Chart.yaml index aa3803afbd030e63d65ef608d57822187445355c..f8186d35046dae0d6629d1cb35655e17523e17ee 100644 --- a/helmchart/single-sign-on/Chart.yaml +++ b/helmchart/single-sign-on/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v1 description: A Helm chart for Stackspin's Single sign-on components name: single-sign-on -version: 0.5.0 +version: 0.5.1 diff --git a/helmchart/single-sign-on/README.md b/helmchart/single-sign-on/README.md index 1ec392285e9dfa76f00e050088e674edf34a76f9..4a29e6f323bab78aed363b79ccb678f2d76fb807 100644 --- a/helmchart/single-sign-on/README.md +++ b/helmchart/single-sign-on/README.md @@ -1,3 +1 @@ -Please refer to the [online documentation](.../helmchart) - - +Please refer to the [online documentation](../../docs//helmchart.md)