Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
docs: Add examples for other type of registries (#1854)
Browse files Browse the repository at this point in the history
  • Loading branch information
schelv authored Oct 12, 2023
1 parent 8a9da59 commit e83fbd9
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions docs/gitlab.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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',
Expand Down

0 comments on commit e83fbd9

Please sign in to comment.