diff --git a/.github/renovate.json b/.github/renovate.json index 6a73bec..7c26e92 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,6 +1,8 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "description": "Renovate GitHub self-hosted runner repository configuration", "extends": [ - "local>gsuquet/renovate:renovate-repo-config" + "github>gsuquet/renovate-config:renovate-default-github", + "github>gsuquet/renovate-config:renovate-repo" ] } diff --git a/renovate-default-config.json b/renovate-default-config.json deleted file mode 100644 index 5ba0076..0000000 --- a/renovate-default-config.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "description": "Default configuration for use in my personal repositories", - "extends": [ - "config:best-practices", - ":maintainLockFilesWeekly", - ":rebaseStalePrs", - ":semanticCommits", - ":semanticCommitScope(deps)", - ":disableRateLimiting", - ":gitSignOff", - ":assignAndReview(gsuquet)" - ], - "forkProcessing": "enabled", - "labels": ["renovate"], - "automergeType": "pr", - "commitBodyTable": true, - "configMigration": true, - "minimumReleaseAge": "0", - "rebaseWhen": "behind-base-branch", - "internalChecksFilter": "strict", - "packageRules": [ - { - "description": "Require approval for all major version updates", - "matchUpdateTypes": ["major"], - "dependencyDashboardApproval": true - }, - { - "description": "Prefix all markdown files updates with 'docs'", - "matchFileNames": ["**/*.md"], - "semanticCommitType": "docs", - "semanticCommitScope": null, - "automerge": true - }, - { - "description": "v prefix workaround for GitHub action updates", - "matchDepTypes": ["action"], - "extractVersion": "^(?v\\d+\\.\\d+\\.\\d+)$", - "versioning": "regex:^v(?\\d+)(\\.(?\\d+)\\.(?\\d+))?$" - }, - { - "description": "Pin Docker images with their SHA256 digest", - "matchManagers": ["dockerfile", "docker-compose"], - "matchDatasources": ["docker"], - "pinDigests": true - } - ], - "regexManagers": [ - { - "description": "Update `version:` and `_VERSION:` variables in github workflows", - "fileMatch": ["^\\.github/workflows/[^/]+\\.ya?ml$"], - "matchStrings": [ - "\\s+(?:[a-z]-)?version: (?.+?) # renovate: datasource=(?.+?) depName=(?.+?)(?: (?:packageName|lookupName)=(?.+?))?(?: versioning=(?.+?))?\\s", - "\\s*[A-Z_]+?_VERSION: (?.+?) # renovate: datasource=(?.+?) depName=(?.+?)(?: (?:packageName|lookupName)=(?.+?))?(?: versioning=(?.+?))?\\s" - ] - }, - { - "description": "Update _VERSION variables in shell scripts", - "fileMatch": ["\\.sh$"], - "matchStrings": [ - "# renovate: datasource=(?[a-z-]+?) depName=(?.+?)(?: (?:packageName|lookupName)=(?.+?))?(?: versioning=(?[a-z-]+?))?\\s[A-Z_]+?_VERSION=(?.+?)\\s" - ] - } - ] -} \ No newline at end of file diff --git a/renovate-repo-config.json b/renovate-repo-config.json deleted file mode 100644 index 08b0efd..0000000 --- a/renovate-repo-config.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "description": "Renovate self-hosted runner repository configuration", - "extends": [ - "local>gsuquet/renovate:renovate-default-config" - ], - "packageRules": [ - { - "description": "Update renovate docker image weekly", - "extends": ["schedule:weekly"], - "matchDatasources": ["docker"], - "matchDepNames": ["renovate"] - } - ] -} \ No newline at end of file diff --git a/renovate-runner-config.json b/renovate-runner-config.json index 7e7d205..1994c52 100644 --- a/renovate-runner-config.json +++ b/renovate-runner-config.json @@ -1,21 +1,21 @@ { + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "description": "Renovate self-hosted runner configuration", + "autodiscover": true, + "autodiscoverFilter": ["gsuquet/*"], + "branchPrefix": "gsuquet/renovate/", + "dependencyDashboardTitle": "Dependency Dashboard (self-hosted)", + "gitAuthor": "Renovate Bot ", + "onboarding": true, + "onboardingConfig": { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "description": "Renovate self-hosted runner configuration", - "autodiscover": true, - "autodiscoverFilter": ["gsuquet/*"], - "branchPrefix": "gsuquet/renovate/", - "dependencyDashboardTitle": "Dependency Dashboard (self-hosted)", - "gitAuthor": "Renovate Bot ", - "onboarding": true, - "onboardingConfig": { - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": ["local>gsuquet/renovate:renovate-default-config"] - }, - "onboardingConfigFileName": ".github/renovate.json", - "onboardingBranch": "chore/renovate/onboarding", - "onboardingCommitMessage": "chore(config): add renovate", - "onboardingPrTitle": "chore(renovate): onboarding and configuration", - "platform": "github", - "platformCommit": true, - "prCommitsPerRunLimit": 0 + "extends": ["github>gsuquet/renovate:renovate-default-github"] + }, + "onboardingConfigFileName": ".github/renovate.json", + "onboardingBranch": "chore/renovate/onboarding", + "onboardingCommitMessage": "chore(config): add renovate", + "onboardingPrTitle": "chore(renovate): onboarding and configuration", + "platform": "github", + "platformCommit": true, + "prCommitsPerRunLimit": 0 } \ No newline at end of file