ci: add Renovate for automated dependency updates
Some checks failed
CI / lint (push) Successful in 40s
Deploy / notebooks (push) Has been skipped
Deploy / zotero (push) Has been skipped
Deploy / docs (push) Has been skipped
Deploy / api (push) Has been skipped
Deploy / mc (push) Has been skipped
Deploy / report (push) Successful in 36s
CI / test (push) Failing after 1m48s

- renovate-bot user created with write access to stack repo
- Weekly schedule (Monday 4am) + manual dispatch
- Auto-merge minor/patch, PR for major versions
- Scans pyproject.toml, compose.yml, Dockerfiles
This commit is contained in:
kert
2026-04-18 20:34:26 -04:00
parent 5a5a306b48
commit 4fb4745495
2 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
name: Renovate
on:
schedule:
- cron: "0 4 * * 1" # Weekly Monday 4am
workflow_dispatch:
jobs:
renovate:
runs-on: ubuntu-latest
container: ghcr.io/renovatebot/renovate:latest
steps:
- uses: https://github.com/actions/checkout@v4
- name: Run Renovate
run: renovate
env:
RENOVATE_CONFIG_FILE: renovate.json
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
RENOVATE_GIT_AUTHOR: "Renovate Bot <renovate@fhirworx.io>"
LOG_LEVEL: "info"

24
renovate.json Normal file
View File

@@ -0,0 +1,24 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"],
"platform": "gitea",
"endpoint": "http://git:3000/api/v1",
"gitAuthor": "Renovate Bot <renovate@fhirworx.io>",
"automerge": false,
"labels": ["dependencies"],
"packageRules": [
{
"matchUpdateTypes": ["minor", "patch"],
"automerge": true
}
],
"pip_requirements": {
"fileMatch": ["pyproject.toml"]
},
"docker-compose": {
"fileMatch": ["compose.yml"]
},
"dockerfile": {
"fileMatch": ["infra/images/*.Dockerfile"]
}
}