From 647d481a95b3dab763efc7a7d6d91f01bcf8fb2f Mon Sep 17 00:00:00 2001
From: Janne Mareike Koschinski <janne@kuschku.de>
Date: Sat, 30 Apr 2022 18:47:48 +0200
Subject: [PATCH] ci: publish version based on tag

---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5f4dba8..14f5e32 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,6 +20,6 @@ release-helm:
     - apk add --no-cache git
     - helm plugin install https://github.com/chartmuseum/helm-push.git
     - helm repo add --username gitlab-ci-token --password $CI_JOB_TOKEN repo ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/stable
-    - helm cm-push . repo
+    - helm cm-push . --version="${CI_COMMIT_TAG}" repo
   only:
     - tags
-- 
GitLab