fix(ci): Fix GitLab CI YAML syntax error in before_script
- 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 <noreply@anthropic.com>
This commit is contained in:
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user