From 27e346445767d1f8aee81bfd3d1f03026beb5691 Mon Sep 17 00:00:00 2001
From: Maarten de Waard <maarten@greenhost.nl>
Date: Tue, 21 Dec 2021 11:49:16 +0100
Subject: [PATCH] publish helm chart to GitLab package repo

---
 .gitlab-ci.yml                        | 9 +++++++++
 helmchart/single-sign-on/CHANGELOG.md | 4 ++++
 helmchart/single-sign-on/Chart.yaml   | 2 +-
 3 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f9a94ce..c31e5c1 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/helmchart/single-sign-on/CHANGELOG.md b/helmchart/single-sign-on/CHANGELOG.md
index f3e1c2a..93ee743 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
+
 ## [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 aa3803a..f8186d3 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
-- 
GitLab