67 lines
2.3 KiB
YAML
67 lines
2.3 KiB
YAML
# .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.
|
|
#
|
|
# Voraussetzung: Secret RENOVATE_TOKEN (Gitea-Token des Bot-Users)
|
|
|
|
name: renovate
|
|
|
|
on:
|
|
schedule:
|
|
- 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: ghcr.io/renovatebot/renovate:latest@sha256:823dc5036b911696c27faacf7664219b28e6e15826405720df29aad208d19f25
|
|
timeout-minutes: 60
|
|
steps:
|
|
- name: Run Renovate
|
|
run: renovate
|
|
env:
|
|
# --- Plattform ---
|
|
RENOVATE_PLATFORM: gitea
|
|
RENOVATE_ENDPOINT: https://git.share-fix.de/api/v1
|
|
RENOVATE_TOKEN: ${{ secrets.RENOVATE_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
|