- JavaScript 100%
| template | ||
| .editorconfig | ||
| .gitlab-ci.yml | ||
| CODEOWNERS | ||
| config.js | ||
| LICENSE | ||
| README.md | ||
| renovate.json | ||
NLdoc Renovate Configuration
Automated dependency management configuration for the NLdoc project ecosystem using Renovate Bot. This repository provides centralized Renovate configuration and intelligent repository discovery for managing dependencies across multiple package types in the NLdoc namespace.
Overview
This Renovate configuration automatically:
- Discovers and monitors repositories in the
logius/nldocnamespace - Manages dependencies for multiple package ecosystems (NPM, Helm, PyPI, Hex)
- Provides intelligent repository filtering based on published packages
- Enables automated dependency updates with configurable merge strategies
- Integrates with GitLab CI/CD pipelines for scheduled execution
Features
Multi-Ecosystem Support
- NPM packages: JavaScript/TypeScript dependencies
- Helm charts: Kubernetes application packages
- PyPI packages: Python dependencies
- Hex packages: Elixir dependencies
Smart Repository Discovery
- Automatically discovers repositories containing publishable packages
- Filters repositories based on package registry presence
- Supports scoped execution for specific dependency types
- Generates dynamic CI pipeline configurations
Automated Merge Strategies
- Patch updates: Auto-merge with semantic commit type
fix - Dev dependencies: Auto-merge with semantic commit type
chore - Major/minor updates: Manual review required
- Platform-level automerge enabled for supported updates
Configuration Files
Core Configuration
renovate.json- Primary Renovate configuration with package rulesconfig.js- Alternative JavaScript configuration with post-upgrade command support.gitlab-ci.yml- Main CI pipeline for repository discovery and execution
Templates
template/.gitlab-ci.yml- Dynamic pipeline template for discovered repositoriestemplate/.gitlab-ci-empty.yml- Empty pipeline fallback configuration
CI/CD Integration
Pipeline Flow
- Discovery Phase: Scans for repositories and extracts package information
- Filtering Phase: Identifies repositories with relevant dependencies
- Execution Phase: Triggers parallel Renovate runs for discovered repositories
Upstream Integration
This repository integrates with upstream pipelines from the NLdoc CI repository:
prepare-renovate-pipeline.yml- Detects package types in source repositoriesrun-renovate-pipeline.yml- Triggers this Renovate pipeline with package context
Environment Variables
RENOVATE_AUTODISCOVER: Enables automatic repository discoveryRENOVATE_AUTODISCOVER_NAMESPACES: Target namespace (logius/nldoc)RENOVATE_ONBOARDING: Enables onboarding for new repositories- Package-specific variables:
NPM_PACKAGES,HELM_PACKAGES,PYPI_PACKAGES,HEX_PACKAGES
Getting Started
Prerequisites
- GitLab Runner with Docker support
- Access to
renovate-bot/renovate-runnerproject templates - Appropriate GitLab permissions for target repositories
Manual Execution
The pipeline can be triggered manually through GitLab CI/CD interface or via API. For scheduled execution, configure pipeline schedules in GitLab.
Repository Onboarding
New repositories are automatically onboarded when:
- They contain supported package files (
package.json,Chart.yaml,setup.py,mix.exs) - They have published packages in respective registries
- They match the configured namespace filter
Configuration Customization
Package Rules
Modify renovate.json to adjust:
- Update strategies per dependency type
- Semantic commit message formats
- Automerge policies
- Branch and PR naming conventions
Repository Filtering
Adjust discovery logic in .gitlab-ci.yml:
- Modify namespace patterns
- Add/remove package type filters
- Customize repository selection criteria
Post-Upgrade Commands
Use config.js for advanced scenarios requiring:
- Custom build commands after updates
- Test execution validation
- Deployment pipeline triggers
Monitoring and Troubleshooting
Artifacts
The pipeline generates several artifacts:
renovate-cache/renovate-extracted.jsonl- Repository discovery cachetemplate/renovate-repos.json- Filtered repository list.gitlab-renovate-repos.yml- Generated pipeline configuration
Debugging
- Check artifact contents for repository discovery issues
- Verify package registry connectivity for filtering problems
- Review Renovate logs for dependency update failures
- Validate GitLab permissions for repository access issues
Contributing
When modifying this configuration:
- Test changes in a development environment first
- Validate JSON configuration syntax
- Ensure pipeline templates remain compatible
- Document configuration changes in commit messages
License
This project is licensed under the European Union Public License 1.2 - see LICENSE for details.
Related Projects
- Renovate Bot Documentation - Official Renovate documentation
- GitLab CI/CD - Pipeline execution platform