diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..485dee6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea diff --git a/README.md b/README.md new file mode 100644 index 0000000..e890930 --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# Renovate Configuration + +Base Renovate configuration for the self-hosted Gitea instance at `spenke-nordic.com`. + +## Usage + +Extend this configuration in your repository's `renovate.json`: + +```json +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "local>paulspenke/renovate-config:default" + ] +} +``` + +## Presets + +- `default`: Base configuration with standard rules. +- `docker`: Specific rules for Docker images. +- `npm`: Specific rules for Node.js packages. +- `github-actions`: Rules for GitHub/Gitea Actions. + +## Bot Configuration + +The bot is configured via `config.js` to run on the `gitea` platform. diff --git a/config.js b/config.js index 26659d7..145c623 100644 --- a/config.js +++ b/config.js @@ -1,8 +1,14 @@ module.exports = { - "endpoint": "https://gitea.spenke-nordic.com/api/v1", // replace it with your actual endpoint - "gitAuthor": "Renovate Bot ", - "platform": "gitea", - "onboardingConfigFileName": "renovate.json", - "autodiscover": true, - "optimizeForDisabled": true, + endpoint: "https://gitea.spenke-nordic.com/api/v1", // replace it with your actual endpoint + gitAuthor: "Renovate Bot ", + platform: "gitea", + onboardingConfigFileName: "renovate.json", + autodiscover: true, + optimizeForDisabled: true, + dependencyDashboard: true, + dependencyDashboardTitle: "Dependency Dashboard", + prConcurrentLimit: 10, + prHourlyLimit: 0, + stabilityDays: 3, + labels: ["dependencies", "renovate"], }; diff --git a/default.json b/default.json new file mode 100644 index 0000000..741867e --- /dev/null +++ b/default.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "description": "Base configuration with standard rules", + "extends": [ + "config:recommended", + ":dependencyDashboard", + ":separateMajorReleases", + ":combinePatchMinorReleases", + "group:allNonMajor" + ], + "packageRules": [ + { + "matchUpdateTypes": ["minor", "patch", "pin", "digest"], + "automerge": true, + "automergeType": "pr", + "platformAutomerge": true + } + ] +} diff --git a/docker.json b/docker.json new file mode 100644 index 0000000..182de72 --- /dev/null +++ b/docker.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "description": "Docker specific rules", + "extends": [ + "docker:pinDigests" + ], + "packageRules": [ + { + "matchDatasources": ["docker"], + "matchUpdateTypes": ["minor", "patch"], + "automerge": true + } + ] +} diff --git a/renovate.json b/renovate.json index 7190a60..2c90315 100644 --- a/renovate.json +++ b/renovate.json @@ -1,3 +1,6 @@ { - "$schema": "https://docs.renovatebot.com/renovate-schema.json" + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "local>paulspenke/renovate-config:default" + ] }