commit a489cb118b5756207c3707b695cf11b242e772d6 Author: Aleksander Cynarski Date: Sun Jul 27 00:34:43 2025 +0200 Add config.js diff --git a/.gitea/workflows/renovate.yaml b/.gitea/workflows/renovate.yaml new file mode 100644 index 0000000..9b81abb --- /dev/null +++ b/.gitea/workflows/renovate.yaml @@ -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 }} diff --git a/config.js b/config.js new file mode 100644 index 0000000..146ad69 --- /dev/null +++ b/config.js @@ -0,0 +1,26 @@ +module.exports = { + "endpoint": "https://git.cynarski.pl/api/v1", + "gitAuthor": "Renovate Bot ", + "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=(?\\S+) depName=(?\\S+) versioning=(?\\S+)\\s+ENV \\w+=(?\\d+\\.\\d+\\.\\d+)' + ], + datasourceTemplate: '{{{datasource}}}', + packageNameTemplate: '{{{depName}}}', + versioningTemplate: '{{{versioning}}}', + } + ], +};