Ensure Renovate updates itself regularly (#6)

The `github-actions` manager should also work for Gitea Actions. It is
the same syntax.

As per Discord conversation, unpin the Docker digest for Renovate.

Signed-off-by: justusbunsi <sk.bunsenbrenner@gmail.com>

Reviewed-on: https://gitea.com/gitea/renovate-config/pulls/6
Co-authored-by: justusbunsi <sk.bunsenbrenner@gmail.com>
Co-committed-by: justusbunsi <sk.bunsenbrenner@gmail.com>
This commit is contained in:
justusbunsi
2023-09-09 14:10:56 +00:00
committed by techknowlogick
parent c7cdec4545
commit 1448c584db
3 changed files with 10 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ on:
jobs: jobs:
renovate: renovate:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: ghcr.io/renovatebot/renovate:36.79.1@sha256:af329e14261bfc17dc31b63376fb45bbf2aea46d6683d3b4fbb567118d6032e4 container: ghcr.io/renovatebot/renovate:36.79.1
steps: steps:
- uses: https://github.com/actions/checkout@v3 - uses: https://github.com/actions/checkout@v3
- run: renovate - run: renovate
@@ -22,10 +22,3 @@ jobs:
GITHUB_COM_TOKEN: ${{ secrets.GH_TOKEN }} GITHUB_COM_TOKEN: ${{ secrets.GH_TOKEN }}
HUB_DOCKER_COM_USER: ${{ secrets.HUB_DOCKER_COM_USER }} HUB_DOCKER_COM_USER: ${{ secrets.HUB_DOCKER_COM_USER }}
HUB_DOCKER_COM_TOKEN: ${{ secrets.HUB_DOCKER_COM_TOKEN }} HUB_DOCKER_COM_TOKEN: ${{ secrets.HUB_DOCKER_COM_TOKEN }}
# - name: Install libs
# run: apt-get update && apt-get install -y sudo lsb-release systemd docker.io
# - name: Self-hosted Renovate
# uses: renovatebot/github-action@v39.0.5
# with:
# # configurationFile: default.json
# token: ${{ secrets.RENOVATE_TOKEN }}

View File

@@ -3,5 +3,6 @@
To host the renovate config. To host the renovate config.
- `config.js` holds the self-hosted Renovate configuration so that Renovate knows what and how it should process. - `config.js` holds the self-hosted Renovate configuration so that Renovate knows what and how it should process.
- `renovate.json` in this repository ensures to receive Renovate updates.
- `default.json` holds the basic config for all repositories. It extends the presets by the renovate project defined in `renovate-schema.json`. - `default.json` holds the basic config for all repositories. It extends the presets by the renovate project defined in `renovate-schema.json`.
- Each repository can extend/alter this config by adding a `renovate.json` file to the root of the repository. - Each repository can extend/alter this config by adding a `renovate.json` file to the root of the repository.

View File

@@ -2,6 +2,14 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["gitea/renovate-config"], "extends": ["gitea/renovate-config"],
"dependencyDashboard": true, "dependencyDashboard": true,
"enabledManagers": [
"github-actions"
],
"github-actions": {
"fileMatch": [
"^\\.gitea/workflows/renovate\\.yml$"
]
},
"packageRules": [ "packageRules": [
{ {
"description": "use fix scope for renovate updates", "description": "use fix scope for renovate updates",