Skip to the content.

Purpose

This Renovate preset is an example for configuring a custom registry for a datasource.

Use-cases:

Preset

This is an example for Maven/SBT, Docker & Helm. It can be extended to support all datasources that Renovate supports.

preset.json:

{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "description": "Add company registries for each datasource type",
  "packageRules": [
    {
      "matchDatasources": [
        "maven",
        "sbt-package",
        "sbt-plugin"
      ],
      "registryUrls": [
        "https://artifactory.mycompany.net/artifactory/internal-releases",
        "https://artifactory.mycompany.net/artifactory/external"
      ]
    },
    {
      "matchDatasources": [
        "docker"
      ],
      "registryUrls": [
        "https://container-registry.mycompany.net/"
      ]
    },
    {
      "matchDatasources": [
        "helm"
      ],
      "registryUrls": [
        "https://artifactory.mycompany.net/artifactory/helm"
      ]
    }
  ]
}

Other presets

Check out other useful presets.