From df1894cb110a180bd871185fa3585b78588b23ba Mon Sep 17 00:00:00 2001 From: Laurent CHASTEL <lchastel@fmlogistic.com> Date: Mon, 5 Feb 2024 11:12:05 +0000 Subject: [PATCH] fix: set platform to gitlab --- README.md | 5 +++-- kicker.json | 5 +++++ templates/gitlab-ci-renovate.yml | 4 ++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9099e3f..6a8c479 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/kicker.json b/kicker.json index 2442ccf..9676a4b 100644 --- a/kicker.json +++ b/kicker.json @@ -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" } ] } diff --git a/templates/gitlab-ci-renovate.yml b/templates/gitlab-ci-renovate.yml index 9e70df7..e730a56 100644 --- a/templates/gitlab-ci-renovate.yml +++ b/templates/gitlab-ci-renovate.yml @@ -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 -- GitLab