Update all Drupal module CI configs to use git tags
Objective
Fix all Drupal modules .gitlab-ci.yml
files to extract version from $CI_COMMIT_TAG
instead of composer.json
.
Problem
Current CI configs use:
PACKAGE_VERSION=$(php -r "echo json_decode(file_get_contents('composer.json'))->version ?? '1.0.0';")
This breaks when version
field is removed from composer.json
.
Solution
Update to:
PACKAGE_VERSION=${CI_COMMIT_TAG#v} # Strip 'v' prefix from tag (v0.1.3 -> 0.1.3)
Affected Modules
All modules in all_drupal_custom/modules/
:
- ai_agentic_workflows
- ai_agent_crewai
- ai_agent_huggingface
- ai_agent_marketplace
- ai_agent_orchestra
- ai_agents
- ai_agents_charts
- ai_agents_client
- ai_provider_apple
- ai_provider_langchain
- alternative_services
- api_normalizer
- code_executor
- dita_ccms
- gov_compliance
- llm
- mcp_registry
- recipe_onboarding
Implementation
The update-module-ci-configs
job in .gitlab-ci-version-manager.yml
automates this.
Success Criteria
-
All modules' .gitlab-ci.yml
updated -
Changes committed to each module repository -
Tag-based publishing works correctly
Related
- Version Tag Manager Component wiki
- Issue: Merge version-tag-manager component