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
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:
21
.gitea/workflows/renovate.yml
Normal file
21
.gitea/workflows/renovate.yml
Normal 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
24
renovate.json
Normal 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"]
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user