From 9ec7a79348d98df1bd21b5f6da15eab108cbebc0 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sat, 21 Jun 2025 04:06:10 +0200 Subject: [PATCH] add renovate --- technology/applications/Applications.md | 1 + .../applications/development/renovate.md | 58 +++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 technology/applications/development/renovate.md diff --git a/technology/applications/Applications.md b/technology/applications/Applications.md index 20e0e93..e3c3140 100644 --- a/technology/applications/Applications.md +++ b/technology/applications/Applications.md @@ -308,6 +308,7 @@ rev: 2025-01-30 - [ruff](./development/ruff.md) - [uv](./development/uv.md) - [rust-script](./development/rust-script.md) +- [renovatebot](./development/renovate.md) ## Media - [yt-dlp](./media/yt-dlp.md) diff --git a/technology/applications/development/renovate.md b/technology/applications/development/renovate.md new file mode 100644 index 0000000..8ea8e73 --- /dev/null +++ b/technology/applications/development/renovate.md @@ -0,0 +1,58 @@ +--- +obj: application +website: https://docs.renovatebot.com +repo: https://github.com/renovatebot/renovate +--- + +# RenovateBot + +RenovateBot is a powerful open-source tool that automates the process of updating dependencies in your codebase. It scans your project files, identifies outdated packages, and creates pull requests to update them—keeping your dependencies secure and up to date with minimal manual intervention. + +## Setup +Setup a user for renovate on your preferred git forge and get a PAT to authenticate. + +Then add this user as a member to your repositories. Renovate can then be configured through a `renovate.json` config file per repository. + +## K8s Manifest +```yml +apiVersion: batch/v1 +kind: CronJob +metadata: + name: renovate +spec: + schedule: '@hourly' + concurrencyPolicy: Forbid + jobTemplate: + spec: + template: + spec: + containers: + - name: renovate + # Update this to the latest available and then enable Renovate on + # the manifest + image: renovate/renovate:40.57.0 + args: + - user/repo + # Environment Variables + env: + - name: LOG_LEVEL + value: debug + envFrom: + - secretRef: + name: renovate-env + restartPolicy: Never +--- +apiVersion: v1 +kind: Secret +metadata: + name: renovate-env +type: Opaque +stringData: + RENOVATE_GITHUB_COM_TOKEN: 'any-personal-user-token-for-github-com-for-fetching-changelogs' + # You can set RENOVATE_AUTODISCOVER to true to run Renovate on all repos you have push access to + RENOVATE_AUTODISCOVER: 'false' + RENOVATE_ENDPOINT: 'https://github.company.com/api/v3' + RENOVATE_GIT_AUTHOR: 'Renovate Bot ' + RENOVATE_PLATFORM: 'github' + RENOVATE_TOKEN: 'your-github-enterprise-renovate-user-token' +```