From dd6d193a27706ae532bfb6c76cc67a185ed211a3 Mon Sep 17 00:00:00 2001
From: trantzas <ktrantzas@ece.upatras.gr>
Date: Tue, 14 Jan 2025 13:02:18 +0000
Subject: [PATCH] fix for #38:

- remove lowercase enforcement in docker image names at image creation pipelines
---
 ci-templates/default.yml | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/ci-templates/default.yml b/ci-templates/default.yml
index c231446..54b1720 100644
--- a/ci-templates/default.yml
+++ b/ci-templates/default.yml
@@ -17,13 +17,12 @@ stages:
         # Replace '/' with '-' and check for any invalid characters
         APP_VERSION=$(echo "$CI_COMMIT_REF_NAME" | sed 's|/|-|g')
         
-        # Check for invalid characters (only allow lowercase letters, digits, '_', '.', '-')
+        # Check for invalid characters (only allow lowercase and uppercase letters, digits, '_', '.', '-')
         if echo "$APP_VERSION" | grep -q '[^a-zA-Z0-9._-]'; then
-          echo "Error: Branch name contains invalid characters for Docker tags. Only a-z, 0-9, '_', '.', and '-' are allowed."
+          echo "Error: Branch name contains invalid characters for Docker tags. Only a-z, A-Z, 0-9, '_', '.', and '-' are allowed."
           exit 1
         fi
 
-        # Convert to lowercase
-        export APP_VERSION=$(echo "$APP_VERSION" | tr 'A-Z' 'a-z')
+        export APP_VERSION
       fi
     - echo "APP_VERSION set to $APP_VERSION"
-- 
GitLab