From ec9b8ffeec6fc62113a8f260f6c163bc987c2675 Mon Sep 17 00:00:00 2001 From: jgrusewski Date: Fri, 31 Oct 2025 00:14:54 +0100 Subject: [PATCH] fix(ci): Fix GitLab CI YAML syntax error in before_script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Wrapped echo commands with colons in single quotes (lines 84-86) - YAML was interpreting 'echo " Commit: $VAR"' as nested key-value pairs - Single quotes force YAML to treat these as literal strings - Fixes error: 'before_script config should be a string or nested array' Issue: Colons followed by spaces in double-quoted strings cause YAML parser to create nested dictionaries instead of flat string arrays Root cause: Lines 84-86 contained unquoted colons that violated GitLab's requirement that before_script must be 'a string or array of strings up to 10 levels deep' Validation: YAML syntax validated with PyYAML 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a07c928e7..b5632ea34 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -81,9 +81,9 @@ build:docker: - export GIT_COMMIT=$CI_COMMIT_SHORT_SHA - export BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') - echo "Building Docker image..." - - echo " Commit: $GIT_COMMIT" - - echo " Date: $BUILD_DATE" - - echo " Tags: $IMAGE_TAG, $IMAGE_TAG_LATEST" + - 'echo " Commit: $GIT_COMMIT"' + - 'echo " Date: $BUILD_DATE"' + - 'echo " Tags: $IMAGE_TAG, $IMAGE_TAG_LATEST"' script: # Pull latest image for layer caching - echo "Pulling latest image for layer caching..."