From 6701a4b3923f2e09d7ecda4ec447bb63f834055d Mon Sep 17 00:00:00 2001 From: Francwa Date: Mon, 22 Dec 2025 12:50:59 +0100 Subject: [PATCH] infra: added Renovate bot --- .gitea/workflows/renovate.yaml | 22 ++++++++++++++++++++++ Makefile | 1 + renovate.json | 28 ++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 .gitea/workflows/renovate.yaml create mode 100644 renovate.json diff --git a/.gitea/workflows/renovate.yaml b/.gitea/workflows/renovate.yaml new file mode 100644 index 0000000..f701542 --- /dev/null +++ b/.gitea/workflows/renovate.yaml @@ -0,0 +1,22 @@ +name: Renovate Bot + +on: + schedule: + # Every Monday 4AM + - cron: '0 4 * * 1' + workflow_dispatch: + +jobs: + renovate: + runs-on: ubuntu-latest + steps: + - name: Run Renovate + uses: docker://renovate/renovate:latest + env: + RENOVATE_PLATFORM: "gitea" + RENOVATE_ENDPOINT: "https://gitea.iswearihadsomethingforthis.net/api/v1" + RENOVATE_TOKEN: "${{ secrets.G1T34_TOKEN }}" + RENOVATE_REPOSITORIES: '["${{ gitea.repository }}"]' + RENOVATE_GIT_AUTHOR: "Renovate Bot " + # Might need a free github token if lots of depencies + # RENOVATE_GITHUB_TOKEN: "${{ secrets.GITHUB_COM_TOKEN }}" diff --git a/Makefile b/Makefile index cfbf915..7f0b612 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ # --- SETTINGS --- CORE_DIR = brain IMAGE_NAME = agent_media +# renovate: datasource=docker depName=python PYTHON_VERSION = 3.12.7 PYTHON_VERSION_SHORT = $(shell echo $(PYTHON_VERSION) | cut -d. -f1,2) # Change to 'uv' when ready. diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..3150254 --- /dev/null +++ b/renovate.json @@ -0,0 +1,28 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base", + ":disableRateLimiting", + ":semanticCommits" + ], + "labels": ["dependencies", "renovate"], + + "packageRules": [ + { + "matchLanguages": ["python"], + "matchUpdateTypes": ["minor", "patch"], + "groupName": "all non-major python dependencies", + "groupSlug": "all-minor-patch-python" + } + ], + + "regexManagers": [ + { + "description": "Update Docker variables in the Makefile", + "fileMatch": ["^Makefile$"], + "matchStrings": [ + "# renovate: datasource=(?.*?) depName=(?.*?)( versioning=(?.*?))?\\s[A-Z_]+_VERSION [?:]?= (?.*)" + ] + } + ] +}