This commit is contained in:
18
.gitea/workflows/renovate.yaml
Normal file
18
.gitea/workflows/renovate.yaml
Normal 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
26
config.js
Normal 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}}}',
|
||||||
|
}
|
||||||
|
],
|
||||||
|
};
|
Reference in New Issue
Block a user