From 71567736fe539fd436b5fb09571e3d8731ed2930 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <git@minelli.swiss>
Date: Thu, 27 Mar 2025 14:35:33 +0100
Subject: [PATCH] CI/CD => Delete the tag before recreate it

---
 NodeApp/.gitlab-ci/01_functions.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/NodeApp/.gitlab-ci/01_functions.yml b/NodeApp/.gitlab-ci/01_functions.yml
index 3c65d68..903c069 100644
--- a/NodeApp/.gitlab-ci/01_functions.yml
+++ b/NodeApp/.gitlab-ci/01_functions.yml
@@ -211,6 +211,10 @@
             curl --header "Content-Type: application/json" \
               --header "JOB-TOKEN: $CI_JOB_TOKEN" \
               --request DELETE "${GITLAB_API_PROJECT_URL}/releases/${tag_name}"
+        - >
+            curl --header "Content-Type: application/json" \
+              --header "JOB-TOKEN: $CI_JOB_TOKEN" \
+              --request DELETE "${GITLAB_API_PROJECT_URL}/repository/tags/${tag_name}"
         - >
             curl --data "${RELEASE_DATA}" \
               --header "Content-Type: application/json" \
-- 
GitLab