Commit 6ab14f14 authored by Cédric OLIVIER's avatar Cédric OLIVIER
Browse files

Merge branch 'master' into 'master'

fix: set platform to gitlab by default

See merge request to-be-continuous/renovate!6
parents 6175b9df df1894cb
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ The Renovate template uses some global configuration used throughout all jobs.
| Input / Variable | Description                                                                     | Default value     |
|------------------------|---------------------------------------------------------------------------------|-------------------|
| `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: `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.
Upon including the template, carefuly follow [Renovate's documentation](https://docs.renovatebot.com/) to
configure the bot accordingly. Pay attention to the following:

* Remember to set the [platform](https://docs.renovatebot.com/self-hosted-configuration/#platform) parameter
  to `gitlab` in your configuration.
* ~~Remember to set the [platform](https://docs.renovatebot.com/self-hosted-configuration/#platform) parameter
  to `gitlab` in your configuration.~~
* [GitLab platform integration](https://docs.renovatebot.com/modules/platform/gitlab/) requires that you
  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
+5 −0
Original line number Diff line number Diff line
@@ -20,6 +20,11 @@
      "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)",
      "secret": true
    },
    {
      "name": "RENOVATE_PLATFORM",
      "description": "The Platform type of repository",
      "default": "gitlab"
    }
  ]
}
+4 −0
Original line number Diff line number Diff line
@@ -19,6 +19,9 @@ spec:
    image:
      description: The Docker image used to run Renovate
      default: registry.hub.docker.com/renovate/renovate:latest
    platform:
      description: The Platform type of repository
      default: gitlab
---
workflow:
  rules:
@@ -47,6 +50,7 @@ variables:
  TBC_TRACKING_IMAGE: registry.gitlab.com/to-be-continuous/tools/tracking:master

  RENOVATE_IMAGE: $[[ inputs.image ]]
  RENOVATE_PLATFORM: $[[ inputs.platform ]]

  # those are native Renovate configuration variables
  # see: https://docs.renovatebot.com/self-hosted-configuration