From 9b2cbb7e1de640825dddcd3991fb62b0b5751c32 Mon Sep 17 00:00:00 2001 From: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Date: Thu, 4 Jul 2024 14:22:35 +0200 Subject: [PATCH] docs(config options): example to limit `registryAliases` to one manager --- docs/usage/configuration-options.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/usage/configuration-options.md b/docs/usage/configuration-options.md index 09dc38bc540f13..df83b24e7a82fe 100644 --- a/docs/usage/configuration-options.md +++ b/docs/usage/configuration-options.md @@ -3721,7 +3721,7 @@ This feature works with the following managers: - [`terraform`](modules/manager/terraform/index.md) - [`woodpecker`](modules/manager/woodpecker/index.md) -```json +```json title="Setting generic aliases" { "registryAliases": { "jfrogecosystem": "some.jfrog.mirror", @@ -3730,6 +3730,17 @@ This feature works with the following managers: } ``` +```json title="Setting aliases for a specific Renovate manager only" +{ + "gitlabci": { + "registryAliases": { + "$HARBOR_HOST/$HARBOR_PROJECT": "registry.example.com/proxy", + "$HARBOR_HOST/tools": "registry.example.com/tools" + } + } +} +``` + ## registryUrls Usually Renovate is able to either (a) use the default registries for a datasource, or (b) automatically detect during the manager extract phase which custom registries are in use.