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',