Skip to content
Snippets Groups Projects
Commit dd6d193a authored by trantzas's avatar trantzas
Browse files

fix for #38:

- remove lowercase enforcement in docker image names at image creation pipelines
parent 60c8b3e3
No related branches found
No related tags found
1 merge request!46MR for Release 2024Q4
Pipeline #11215 passed
...@@ -17,13 +17,12 @@ stages: ...@@ -17,13 +17,12 @@ stages:
# Replace '/' with '-' and check for any invalid characters # Replace '/' with '-' and check for any invalid characters
APP_VERSION=$(echo "$CI_COMMIT_REF_NAME" | sed 's|/|-|g') 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 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 exit 1
fi fi
# Convert to lowercase export APP_VERSION
export APP_VERSION=$(echo "$APP_VERSION" | tr 'A-Z' 'a-z')
fi fi
- echo "APP_VERSION set to $APP_VERSION" - echo "APP_VERSION set to $APP_VERSION"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment