ci: Renovate opens version bump PRs with release notes
Versions are pinned across the Ansible vars, compose files, Terraform providers and workflows, and nothing says when one is behind. Run Renovate daily from Forgejo Actions: one PR per available bump, with the upstream changelog in the body, which the deploy pipeline then dry-runs like any other branch. Variables are tracked through a "# renovate: datasource=... depName=..." comment above them; Forgejo, Traefik, the runner and its nix image get one here. The Paper JRE tag is left alone, the runner and nix bumps carry their manual follow-up steps in the PR, and Renovate's own image is bumped monthly. Needs the repository secrets RENOVATE_TOKEN (bot user with write access) and GH_COM_TOKEN (read-only github.com token for release notes). Assisted-by: Claude:opus-5-5
This commit is contained in:
parent
59415515a1
commit
2aca0d7669
5 changed files with 77 additions and 0 deletions
32
.forgejo/workflows/renovate.yaml
Normal file
32
.forgejo/workflows/renovate.yaml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
name: renovate
|
||||
|
||||
# Opens a PR per available version bump (image tags, restic, ...), with
|
||||
# the upstream release notes in the PR body. Configuration: renovate.json.
|
||||
#
|
||||
# Secrets: RENOVATE_TOKEN (Forgejo token of the renovate-bot user, a
|
||||
# collaborator with write access) and GH_COM_TOKEN (read-only github.com
|
||||
# token, only for fetching release notes; without it PRs have none).
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "17 5 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
renovate:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/renovatebot/renovate:44.236.2
|
||||
steps:
|
||||
- name: Run Renovate
|
||||
env:
|
||||
RENOVATE_PLATFORM: forgejo
|
||||
RENOVATE_ENDPOINT: https://git.asxp.io/api/v1
|
||||
RENOVATE_REPOSITORIES: asxpi/infrastructure
|
||||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
||||
RENOVATE_GITHUB_COM_TOKEN: ${{ secrets.GH_COM_TOKEN }}
|
||||
RENOVATE_GIT_AUTHOR: "Renovate Bot <renovate-bot@noreply.git.asxp.io>"
|
||||
RENOVATE_ONBOARDING: "false"
|
||||
RENOVATE_REQUIRE_CONFIG: required
|
||||
LOG_LEVEL: info
|
||||
run: renovate
|
||||
Loading…
Add table
Add a link
Reference in a new issue