From 3179ec8fe6ea3325574a20ef6d556876cc420bc3 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Wed, 10 Jan 2024 06:28:08 +0100 Subject: [PATCH] add config and drone --- .drone.yml | 32 ++++++++++++++++++++++++++++++++ config.js | 10 ++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .drone.yml create mode 100644 config.js diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..566732d --- /dev/null +++ b/.drone.yml @@ -0,0 +1,32 @@ +--- +kind: pipeline +type: docker +name: renovate + +trigger: + event: + - cron + - push + - custom + +environment: + LOG_LEVEL: debug + +steps: + - name: renovate - validate config + image: renovate/renovate:37.127 + # https://github.com/renovatebot/renovate/discussions/15049 + commands: + - unset GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL + - renovate-config-validator + + - name: renovate + image: renovate/renovate:37.127 + # https://github.com/renovatebot/renovate/discussions/15049 + commands: + - unset GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL + - renovate + + environment: + RENOVATE_TOKEN: + from_secret: RENOVATE_TOKEN diff --git a/config.js b/config.js new file mode 100644 index 0000000..d614ed6 --- /dev/null +++ b/config.js @@ -0,0 +1,10 @@ +module.exports = { + platform: "gitea", + endpoint: "https://git.opytex.org/api/v1/", + autodiscover: true, + onboardingConfig: { + extends: ["renovate/renovate-config"], + }, + optimizeForDisabled: true, + persistRepoData: true, +};