From 520aad24dde0fa5c30192dc12d58bb698663fe7f Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 23 Apr 2025 22:20:59 +0000 Subject: [PATCH 1/2] configure renovate --- .drone.yml | 32 +++++++++++++++++++++++++++++++- renovate.json | 6 ++++++ renovate_config.js | 16 ++++++++++++++++ 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 renovate.json create mode 100644 renovate_config.js diff --git a/.drone.yml b/.drone.yml index 2017f32..17b5ca1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,16 @@ +--- kind: pipeline type: docker -name: default +name: renovate + +trigger: + event: + - cron + - push + - custom + +environment: + LOG_LEVEL: debug services: - name: postgres @@ -62,3 +72,23 @@ steps: - mix deps.get # Run tests - mix test + + - name: renovate - validate config + image: renovate/renovate:39.256 + # https://github.com/renovatebot/renovate/discussions/15049 + commands: + - unset GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL + - RENOVATE_CONFIG_FILE="renovate_config.js" renovate-config-validator + + - name: renovate + image: renovate/renovate:39.256 + # https://github.com/renovatebot/renovate/discussions/15049 + commands: + - unset GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL + - RENOVATE_CONFIG_FILE="renovate_config.js" renovate + + environment: + RENOVATE_TOKEN: + from_secret: RENOVATE_TOKEN + #GITHUB_COM_TOKEN: + # from_secret: GITHUB_COM_TOKEN diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..5db72dd --- /dev/null +++ b/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ] +} diff --git a/renovate_config.js b/renovate_config.js new file mode 100644 index 0000000..3efb6cf --- /dev/null +++ b/renovate_config.js @@ -0,0 +1,16 @@ +module.exports = { + endpoint: "https://git.local-it.org/api/v1/", + gitAuthor: 'Renovate Bot ', + username: 'renovate', + platform: "gitea", + onboarding: true, + autodiscover: true, + persistRepoData: true, + optimizeForDisabled: true, + assignees: [], + labels: ["renovate", "dependencies", "automated"], + onboardingConfig: { + extends: ["config:recommended"], + }, + repositories: ["local-it/mitgliederverwaltung"] +}; From 87c583fd39928d54b24573a1aeb603640a2d694d Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 23 Apr 2025 22:20:59 +0000 Subject: [PATCH 2/2] configure renovate --- .drone.yml | 34 ++++++++++++++++++++++++++++++++-- renovate.json | 6 ++++++ renovate_config.js | 16 ++++++++++++++++ 3 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 renovate.json create mode 100644 renovate_config.js diff --git a/.drone.yml b/.drone.yml index 2017f32..a420c88 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,6 @@ kind: pipeline type: docker -name: default +name: Checks services: - name: postgres @@ -14,7 +14,7 @@ trigger: - push steps: - - name: check + - name: lint image: docker.io/library/elixir:1.18.3-otp-27 commands: # Install hex package manager @@ -62,3 +62,33 @@ steps: - mix deps.get # Run tests - mix test + +--- +kind: pipeline +type: docker +name: renovate + +trigger: + event: + - cron + - push + - custom + +environment: + LOG_LEVEL: debug + +steps: + - name: renovate + image: renovate/renovate:39.256 + # https://github.com/renovatebot/renovate/discussions/15049 + commands: + - unset GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL + - export RENOVATE_CONFIG_FILE="renovate_config.js" + - renovate-config-validator + - renovate + + environment: + RENOVATE_TOKEN: + from_secret: RENOVATE_TOKEN + #GITHUB_COM_TOKEN: + # from_secret: GITHUB_COM_TOKEN diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..5db72dd --- /dev/null +++ b/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ] +} diff --git a/renovate_config.js b/renovate_config.js new file mode 100644 index 0000000..3efb6cf --- /dev/null +++ b/renovate_config.js @@ -0,0 +1,16 @@ +module.exports = { + endpoint: "https://git.local-it.org/api/v1/", + gitAuthor: 'Renovate Bot ', + username: 'renovate', + platform: "gitea", + onboarding: true, + autodiscover: true, + persistRepoData: true, + optimizeForDisabled: true, + assignees: [], + labels: ["renovate", "dependencies", "automated"], + onboardingConfig: { + extends: ["config:recommended"], + }, + repositories: ["local-it/mitgliederverwaltung"] +};