Skip to content

Commit

Permalink
docs(platform/gitlab): Mention "detectHostRulesFromEnv" for "DOCKER_R…
Browse files Browse the repository at this point in the history
…EGISTRY_*" variables
  • Loading branch information
mbrodala authored Jul 5, 2024
1 parent 2bb0ff4 commit 298c83c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/platform/gitlab/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ If you're using a private [GitLab container registry](https://docs.gitlab.com/ee

- Set the `RENOVATE_HOST_RULES` CI variable to `[{"matchHost": "${CI_REGISTRY}","username": "${GITLAB_USER_NAME}","password": "${RENOVATE_TOKEN}", "hostType": "docker"}]`.

Alternatively you can set the CI variables `DOCKER_REGISTRY_GITLAB_COM_USERNAME=${GITLAB_USER_NAME}` and `DOCKER_REGISTRY_GITLAB_COM_PASSWORD=${RENOVATE_TOKEN}`. (See [issue #17940](https://github.com/renovatebot/renovate/issues/17940))
Alternatively, if [`detectHostRulesFromEnv`](../../../../docs/usage/self-hosted-configuration.md#detecthostrulesfromenv) is enabled, you can set the CI variables `DOCKER_REGISTRY_GITLAB_COM_USERNAME=${GITLAB_USER_NAME}` and `DOCKER_REGISTRY_GITLAB_COM_PASSWORD=${RENOVATE_TOKEN}`. (See [issue #17940](https://github.com/renovatebot/renovate/issues/17940))
- Make sure the user that owns the access token is a member of the corresponding GitLab projects/groups with the right permissions.
- Make sure the access token has the `read_registry` scope.

Expand Down

0 comments on commit 298c83c

Please sign in to comment.