Add config.js
All checks were successful
renovate / renovate (push) Successful in 2m59s

This commit is contained in:
2025-07-27 00:34:43 +02:00
commit a489cb118b
2 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
name: renovate
on:
schedule:
- cron: "@daily"
push:
branches:
- main
jobs:
renovate:
runs-on: ubuntu-latest
container: ghcr.io/renovatebot/renovate:37.20.2
steps:
- uses: actions/checkout@v4
- run: renovate
env:
RENOVATE_CONFIG_FILE: "${{ gitea.workspace }}/config.js"
LOG_LEVEL: "info"
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}

26
config.js Normal file
View File

@@ -0,0 +1,26 @@
module.exports = {
"endpoint": "https://git.cynarski.pl/api/v1",
"gitAuthor": "Renovate Bot <renovate@cynarski.pl>",
"platform": "gitea",
"onboardingConfigFileName": "renovate.json",
"autodiscover": true,
"optimizeForDisabled": true,
labels: ['renovate'], // Labels for PRs
hostRules: [
{
"hostType": "github",
"token": "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"
}
],
regexManagers: [
{
fileMatch: ['^Dockerfile$'],
matchStrings: [
'# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+) versioning=(?<versioning>\\S+)\\s+ENV \\w+=(?<currentValue>\\d+\\.\\d+\\.\\d+)'
],
datasourceTemplate: '{{{datasource}}}',
packageNameTemplate: '{{{depName}}}',
versioningTemplate: '{{{versioning}}}',
}
],
};