From 5ef3b3ee05e0e44d1f379a9c1f66d05d7e2b63e2 Mon Sep 17 00:00:00 2001 From: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Date: Thu, 20 May 2021 12:33:59 +0200 Subject: [PATCH] docs: add headings to hostRules config with env vars (#10067) --- docs/usage/private-modules.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/usage/private-modules.md b/docs/usage/private-modules.md index 76611a006d..3a1ef51301 100644 --- a/docs/usage/private-modules.md +++ b/docs/usage/private-modules.md @@ -227,7 +227,7 @@ The format of the environment variables must be all upper-case and follow: Hyphens (`-`) in datasource or host name must be replaced with double underscores (`__`). Periods (`.`) in host names must be replaced with a single underscore (`_`). -Examples: +#### npmjs registry token example `NPM_REGISTRY_NPMJS_ORG_TOKEN=abc123`: @@ -243,6 +243,8 @@ Examples: } ``` +#### GitLab Tags username/password example + `GITLAB__TAGS_CODE__HOST_COMPANY_COM_USERNAME=bot GITLAB__TAGS_CODE__HOST_COMPANY_COM_PASSWORD=botpass123`: ```json @@ -258,9 +260,9 @@ Examples: } ``` -It's also possible to skip the host part, and just have datasource + credentials. +#### Datasource and credentials only -Example: +You can skip the host part, and use just the datasource and credentials. `DOCKER_USERNAME=bot DOCKER_PASSWORD=botpass123`: -- GitLab