From e83fbd92dd9e2294c7266af435ef5f90c2b2d5aa Mon Sep 17 00:00:00 2001 From: schelv <13403863+schelv@users.noreply.github.com> Date: Thu, 12 Oct 2023 11:29:47 +0200 Subject: [PATCH] docs: Add examples for other type of registries (#1854) --- docs/gitlab.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/gitlab.md b/docs/gitlab.md index fcbbd8ec7..0ede6801b 100644 --- a/docs/gitlab.md +++ b/docs/gitlab.md @@ -47,8 +47,8 @@ The `config.js` should be in repo root, because Renovate will load it from curre If you want to override the Git author and committer, you need to override with environment variables (see below). This is necessary, because the env is preset by Gitlab and overrides any Git config done by Renovate. -There is a `hostRule` for the GitLab Docker registry. -The `hostRule`is only required if you use the GitLab registry and Renovate should provide updates from that. +There are `hostRule`'s for the GitLab container registry, python package repository, npm package registry, and composer package registry. +These `hostRule`'s are only required if you use the specific registry and Renovate should provide updates from that. `GITLAB_REGISTRY_TOKEN` is a gitlab [variable](https://docs.gitlab.com/ee/ci/variables/#create-a-custom-variable-in-the-ui). ```js @@ -67,6 +67,21 @@ module.exports = { username: 'other-user', password: process.env.GITLAB_REGISTRY_TOKEN, }, + { + matchHost: process.env.CI_API_V4_URL, + hostType: 'pypi', + token: process.env.RENOVATE_TOKEN, + }, + { + matchHost: process.env.CI_API_V4_URL, + hostType: 'npm', + token: process.env.RENOVATE_TOKEN, + }, + { + matchHost: process.env.CI_API_V4_URL, + hostType: 'packagist', + token: process.env.RENOVATE_TOKEN, + }, ], platform: 'gitlab', username: 'renovate-bot',