Renovate-Beispiele an bestehende Vorlage angeglichen (Cron täglich, Onboarding-Config)

This commit is contained in:
Jochen Mehlich committed 2026-10-24 14:17:20 +02:00
1 parent a5a3fab167
commit 0c9631de4d
2 files changed
+65 -12

No files matched your search

+49 -10
View File
@@ -1,27 +1,66 @@
# Beispiel: .gitea/workflows/renovate.yml (einmal zentral oder pro Repo)
# .gitea/workflows/renovate.yaml
# Liegt in einem eigenen Repo, z. B. "infra/renovate-bot".
# Renovate findet per Autodiscover alle Repos, auf die der Bot-User Zugriff hat.
#
# Voraussetzungen:
# Secret RENOVATE_TOKEN - Gitea-Token des Bot-Users (Rechte: repository r/w, issue r/w, user r)
# Secret GITHUB_COM_TOKEN - optional, nur für Release-Notes/Rate-Limits von github.com
# Voraussetzung: Secret RENOVATE_TOKEN (Gitea-Token des Bot-Users)
name: renovate
on:
schedule:
- cron: "0 4 * * *"
workflow_dispatch:
- cron: "17 3 * * *" # täglich 03:17
workflow_dispatch: # manuell auslösbar
concurrency:
group: renovate
cancel-in-progress: false # nie zwei Läufe parallel
jobs:
renovate:
runs-on: ubuntu-latest
container:
image: renovate/renovate:latest
container: ghcr.io/renovatebot/renovate:latest@sha256:823dc5036b911696c27faacf7664219b28e6e15826405720df29aad208d19f25
timeout-minutes: 60
steps:
- name: Renovate ausführen
- name: Run Renovate
run: renovate
env:
# --- Plattform ---
RENOVATE_PLATFORM: gitea
RENOVATE_ENDPOINT: https://git.share-fix.de/api/v1
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
GITHUB_COM_TOKEN: ${{ secrets.GITHUB_COM_TOKEN }}
RENOVATE_GIT_AUTHOR: "Renovate Bot <4lzkkgpo@futmail.de>"
# --- Autodiscover ---
RENOVATE_AUTODISCOVER: "true"
# Nur bestimmte Orgs/Repos (Glob oder /Regex/), Rest ignorieren.
# --- Onboarding ---
# Neue Repos bekommen einen Onboarding-PR mit dieser renovate.json.
RENOVATE_ONBOARDING: "true"
RENOVATE_ONBOARDING_CONFIG: >-
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended", "docker:pinDigests"],
"timezone": "Europe/Berlin",
"schedule": ["before 6am"],
"automerge": false,
"packageRules": [
{
"matchDatasources": ["docker"],
"matchUpdateTypes": ["patch", "digest"],
"automerge": true
},
{
"matchDatasources": ["docker"],
"matchUpdateTypes": ["major"],
"dependencyDashboardApproval": true
}
]
}
# Repos ohne gemergte renovate.json nicht anfassen (nur Onboarding-PR).
RENOVATE_REQUIRE_CONFIG: required
# --- Grenzen & Logging ---
RENOVATE_PR_HOURLY_LIMIT: "5"
RENOVATE_PR_CONCURRENT_LIMIT: "15"
LOG_LEVEL: info
+16 -2
View File
@@ -1,5 +1,19 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"],
"enabledManagers": ["github-actions"]
"extends": ["config:recommended", "docker:pinDigests"],
"timezone": "Europe/Berlin",
"schedule": ["before 6am"],
"automerge": false,
"packageRules": [
{
"matchDatasources": ["docker"],
"matchUpdateTypes": ["patch", "digest"],
"automerge": true
},
{
"matchDatasources": ["docker"],
"matchUpdateTypes": ["major"],
"dependencyDashboardApproval": true
}
]
}