Skip to content
Snippets Groups Projects
Commit df1894cb authored by Laurent CHASTEL's avatar Laurent CHASTEL
Browse files

fix: set platform to gitlab

parent 6175b9df
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,7 @@ The Renovate template uses some global configuration used throughout all jobs. ...@@ -36,6 +36,7 @@ The Renovate template uses some global configuration used throughout all jobs.
| Input / Variable | Description | Default value | | Input / Variable | Description | Default value |
|------------------------|---------------------------------------------------------------------------------|-------------------| |------------------------|---------------------------------------------------------------------------------|-------------------|
| `image` / `RENOVATE_IMAGE` | The Docker image used to run Renovate | `registry.hub.docker.com/renovate/renovate:latest` | | `image` / `RENOVATE_IMAGE` | The Docker image used to run Renovate | `registry.hub.docker.com/renovate/renovate:latest` |
| `platform` / `RENOVATE_PLATFORM` | The Platform type of repository [See doc](https://docs.renovatebot.com/self-hosted-configuration/#platform) | `gitlab` |
| :lock: `RENOVATE_TOKEN`| A GitLab access token to allow Renovate crawl your projects. [See doc](https://docs.renovatebot.com/modules/platform/gitlab/#authentication) | _none_ | | :lock: `RENOVATE_TOKEN`| A GitLab access token to allow Renovate crawl your projects. [See doc](https://docs.renovatebot.com/modules/platform/gitlab/#authentication) | _none_ |
| :lock: `GITHUB_COM_TOKEN`| A GitHub access token to allow Renovate fetch changelogs. [See doc](https://docs.renovatebot.com/getting-started/running/#githubcom-token-for-changelogs) | _none_ | | :lock: `GITHUB_COM_TOKEN`| A GitHub access token to allow Renovate fetch changelogs. [See doc](https://docs.renovatebot.com/getting-started/running/#githubcom-token-for-changelogs) | _none_ |
...@@ -47,8 +48,8 @@ will be in charge of crawling all your other projects. ...@@ -47,8 +48,8 @@ will be in charge of crawling all your other projects.
Upon including the template, carefuly follow [Renovate's documentation](https://docs.renovatebot.com/) to Upon including the template, carefuly follow [Renovate's documentation](https://docs.renovatebot.com/) to
configure the bot accordingly. Pay attention to the following: configure the bot accordingly. Pay attention to the following:
* Remember to set the [platform](https://docs.renovatebot.com/self-hosted-configuration/#platform) parameter * ~~Remember to set the [platform](https://docs.renovatebot.com/self-hosted-configuration/#platform) parameter
to `gitlab` in your configuration. to `gitlab` in your configuration.~~
* [GitLab platform integration](https://docs.renovatebot.com/modules/platform/gitlab/) requires that you * [GitLab platform integration](https://docs.renovatebot.com/modules/platform/gitlab/) requires that you
declare a `RENOVATE_TOKEN` variable with an access token. declare a `RENOVATE_TOKEN` variable with an access token.
* You'll also probaly need to declare a `GITHUB_COM_TOKEN` variable, holding a GitHub access token * You'll also probaly need to declare a `GITHUB_COM_TOKEN` variable, holding a GitHub access token
......
...@@ -20,6 +20,11 @@ ...@@ -20,6 +20,11 @@
"name": "GITHUB_COM_TOKEN", "name": "GITHUB_COM_TOKEN",
"description": "A GitHub access token to allow Renovate fetch changelogs. [See doc](https://docs.renovatebot.com/getting-started/running/#githubcom-token-for-changelogs)", "description": "A GitHub access token to allow Renovate fetch changelogs. [See doc](https://docs.renovatebot.com/getting-started/running/#githubcom-token-for-changelogs)",
"secret": true "secret": true
},
{
"name": "RENOVATE_PLATFORM",
"description": "The Platform type of repository",
"default": "gitlab"
} }
] ]
} }
...@@ -19,6 +19,9 @@ spec: ...@@ -19,6 +19,9 @@ spec:
image: image:
description: The Docker image used to run Renovate description: The Docker image used to run Renovate
default: registry.hub.docker.com/renovate/renovate:latest default: registry.hub.docker.com/renovate/renovate:latest
platform:
description: The Platform type of repository
default: gitlab
--- ---
workflow: workflow:
rules: rules:
...@@ -47,6 +50,7 @@ variables: ...@@ -47,6 +50,7 @@ variables:
TBC_TRACKING_IMAGE: registry.gitlab.com/to-be-continuous/tools/tracking:master TBC_TRACKING_IMAGE: registry.gitlab.com/to-be-continuous/tools/tracking:master
RENOVATE_IMAGE: $[[ inputs.image ]] RENOVATE_IMAGE: $[[ inputs.image ]]
RENOVATE_PLATFORM: $[[ inputs.platform ]]
# those are native Renovate configuration variables # those are native Renovate configuration variables
# see: https://docs.renovatebot.com/self-hosted-configuration # see: https://docs.renovatebot.com/self-hosted-configuration
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment