From cc68c8ddd9288c0e837f8b94216661db611ae65a Mon Sep 17 00:00:00 2001
From: Bernhard Mallinger <bernhard.mallinger@eox.at>
Date: Wed, 15 Dec 2021 17:35:02 +0100
Subject: [PATCH] Only publish charts on new tags to ensure uniqueness

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9c510ab..da92ba1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,7 +14,7 @@ publish-helm-chart:
     - "upload_filename=$(helm package . | sed 's/^Successfully packaged chart and saved it to: \\(.*\\)/\\1/')"
     - curl -u $HELM_CHART_REPOSITORY_CREDENTIALS -v -X POST https://charts-public.hub.eox.at/api/charts --data-binary "@${upload_filename}"
   only:
-    - main
+    - tag
 
 integration-test:
   image: registry.gitlab.eox.at/vs/vs-deployment/docker-base-testing:latest
-- 
GitLab