renovate-config/README.md
2025-11-24 10:39:48 -06:00

65 lines
2 KiB
Markdown

<!--
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-FileCopyrightText: 2025 Dosh LLC
-->
# Global Renovate Config (`git.auengun.net`)
Global [Renovate](https://docs.renovatebot.com/) configuration used by [@svc-renovate-bot](https://git.auengun.net/svc-renovate-bot?tab=activity) when scanning all repositories on [git.auengun.net](https://git.auengun.net).
## Forgejo Actions Workflow
The workflow for running Renovate is currently in a private repository running via GitHub Actions like workflow via a [Forgejo Actions](https://forgejo.org/docs/latest/user/actions/) workflow `.yml` like the following.
### `Renovate - Cron.yml`
```yml
name: Renovate - Cron
on:
schedule:
- cron: "30 * * * *"
jobs:
renovate:
name: Renovate
runs-on: docker
container:
image: git.auengun.net/homelab/image-renovate:latest
steps:
- name: Ping Start Healthcheck URL
shell: bash
run: |
curl -fsS -m 10 --retry 5 https://healthchecks.auengun.net/ping/${{ vars.HEALTHCHECK_SLUG }}/start
- name: Homelab Common Setup
uses: https://git.auengun.net/homelab/action-common-setup@main
- name: Run Renovate
shell: bash
run: |
renovate
curl -fsS -m 10 --retry 5 https://healthchecks.auengun.net/ping/${{ vars.HEALTHCHECK_SLUG }}/$?
env:
GITHUB_COM_TOKEN: "${{ secrets.GITHUB_COM_TOKEN }}"
RENOVATE_CONFIG_FILE: "${{ github.workspace }}/renovate-config.js"
RENOVATE_TOKEN: "${{ secrets.RENOVATE_TOKEN }}"
```
### `renovate-config.js`
```js
module.exports = {
platform: "forgejo",
endpoint: "https://git.auengun.net/api/v1/",
gitAuthor: "Renovate[BOT] <renovate-bot@auengun.net>",
username: "svc-renovate-bot",
autodiscover: true,
onboarding: true,
onboardingNoDeps: true,
onboardingConfig: {
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: ["local>dosh-llc/renovate-config:default.json5"],
},
persistRepoData: true,
};
```