• JavaScript 100%
Find a file
2025-08-18 13:16:14 +02:00
template chore: override script 2024-12-05 15:07:08 +00:00
.editorconfig chore: set .editorconfig 2025-04-22 00:08:04 +00:00
.gitlab-ci.yml feat: support hex deps 2025-04-24 14:54:47 +00:00
CODEOWNERS chore: set CODEOWNERS 2025-04-22 00:24:25 +00:00
config.js refactor: replace renovate.json with config.js, as that should allow self-hosted Renovate configuration options 2024-06-24 13:11:15 +02:00
LICENSE chore: add license 2025-04-15 00:19:06 +02:00
README.md docs: add readme 2025-08-18 13:16:14 +02:00
renovate.json chore: update dev types 2025-05-12 14:05:47 +00:00

NLdoc Renovate Configuration

pipeline status

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/nldoc namespace
  • 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 rules
  • config.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 repositories
  • template/.gitlab-ci-empty.yml - Empty pipeline fallback configuration

CI/CD Integration

Pipeline Flow

  1. Discovery Phase: Scans for repositories and extracts package information
  2. Filtering Phase: Identifies repositories with relevant dependencies
  3. 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 repositories
  • run-renovate-pipeline.yml - Triggers this Renovate pipeline with package context

Environment Variables

  • RENOVATE_AUTODISCOVER: Enables automatic repository discovery
  • RENOVATE_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-runner project 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:

  1. They contain supported package files (package.json, Chart.yaml, setup.py, mix.exs)
  2. They have published packages in respective registries
  3. 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 cache
  • template/renovate-repos.json - Filtered repository list
  • .gitlab-renovate-repos.yml - Generated pipeline configuration

Debugging

  1. Check artifact contents for repository discovery issues
  2. Verify package registry connectivity for filtering problems
  3. Review Renovate logs for dependency update failures
  4. Validate GitLab permissions for repository access issues

Contributing

When modifying this configuration:

  1. Test changes in a development environment first
  2. Validate JSON configuration syntax
  3. Ensure pipeline templates remain compatible
  4. Document configuration changes in commit messages

License

This project is licensed under the European Union Public License 1.2 - see LICENSE for details.