generated from home-assistant/addons-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(config): migrate config .github/renovate.json5
- Loading branch information
1 parent
b6273e9
commit 0bfa77e
Showing
1 changed file
with
42 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,76 @@ | ||
{ | ||
$schema: 'https://docs.renovatebot.com/renovate-schema.json', | ||
extends: ['github>bfra-me/renovate-config#v1.24.0', 'github>bfra-me/renovate-config:automerge/prForCI#v1.24.0'], | ||
$schema: "https://docs.renovatebot.com/renovate-schema.json", | ||
extends: [ | ||
"github>bfra-me/renovate-config#v1.24.0", | ||
"github>bfra-me/renovate-config:automerge/prForCI#v1.24.0", | ||
], | ||
packageRules: [ | ||
{ | ||
matchDatasources: ['docker'], | ||
matchPackagePrefixes: ['ghcr.io/home-assistant/', 'home-assistant/'], | ||
groupName: 'Home Assistant Add-ons', | ||
groupSlug: 'home-assistant-addons', | ||
matchDatasources: ["docker"], | ||
matchPackagePrefixes: ["ghcr.io/home-assistant/", "home-assistant/"], | ||
groupName: "Home Assistant Add-ons", | ||
groupSlug: "home-assistant-addons", | ||
}, | ||
{ | ||
matchPackageNames: ['hassio-addons/base'], | ||
groupName: 'hassio-addons', | ||
matchPackageNames: ["hassio-addons/base"], | ||
groupName: "hassio-addons", | ||
}, | ||
{ | ||
matchPackageNames: ['hassio-addons/debian-base'], | ||
groupName: 'hassio-addons', | ||
matchPackageNames: ["hassio-addons/debian-base"], | ||
groupName: "hassio-addons", | ||
}, | ||
{ | ||
matchPackageNames: ['hassio-addons/ubuntu-base'], | ||
groupName: 'hassio-addons', | ||
matchPackageNames: ["hassio-addons/ubuntu-base"], | ||
groupName: "hassio-addons", | ||
}, | ||
{ | ||
matchManagers: ['github-actions'], | ||
matchPackagePrefixes: ['frenck/'], | ||
versioning: 'loose', | ||
matchManagers: ["github-actions"], | ||
matchPackagePrefixes: ["frenck/"], | ||
versioning: "loose", | ||
}, | ||
{ | ||
matchDepPatterns: ['^home-assistant/actions(\\/.*)?$'], | ||
groupName: 'Home Assistant Actions', | ||
matchDepPatterns: ["^home-assistant/actions(\\/.*)?$"], | ||
groupName: "Home Assistant Actions", | ||
}, | ||
{ | ||
matchPackageNames: ['home-assistant/builder'], | ||
matchDepTypes: ['action'], | ||
extractVersion: '^(?<version>\\d+\\.\\d+\\.\\d+)$', | ||
versioning: 'regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)$', | ||
commitMessageExtra: 'to {{#if isPinDigest}}{{{newDigestShort}}}{{else}}{{#if newValue}}{{{newValue}}}{{else}}{{{newDigestShort}}}{{/if}}{{/if}}', | ||
matchPackageNames: ["home-assistant/builder"], | ||
matchDepTypes: ["action"], | ||
extractVersion: "^(?<version>\\d+\\.\\d+\\.\\d+)$", | ||
versioning: "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)$", | ||
commitMessageExtra: "to {{#if isPinDigest}}{{{newDigestShort}}}{{else}}{{#if newValue}}{{{newValue}}}{{else}}{{{newDigestShort}}}{{/if}}{{/if}}", | ||
pinDigests: false, | ||
separateMajorMinor: false, | ||
separateMinorPatch: false, | ||
}, | ||
], | ||
regexManagers: [ | ||
customManagers: [ | ||
{ | ||
customType: 'regex', | ||
fileMatch: ['(^|/|\\.)build.ya?ml$'], | ||
customType: "regex", | ||
fileMatch: ["(^|/|\\.)build.ya?ml$"], | ||
matchStrings: [ | ||
'(aarch64|amd64|armhf|armv7|i386):\\s+["\']?(?<depName>[a-z0-9.\\/-]+)(?::(?<currentValue>[a-z0-9.-]+))?(?:@(?<currentDigest>sha256:[a-f0-9]+))?["\']?\\s', | ||
"(aarch64|amd64|armhf|armv7|i386):\\s+[\"']?(?<depName>[a-z0-9.\\/-]+)(?::(?<currentValue>[a-z0-9.-]+))?(?:@(?<currentDigest>sha256:[a-f0-9]+))?[\"']?\\s", | ||
], | ||
datasourceTemplate: 'docker', | ||
datasourceTemplate: "docker", | ||
}, | ||
{ | ||
customType: 'regex', | ||
fileMatch: ['(^|/|\\.)build.ya?ml$'], | ||
customType: "regex", | ||
fileMatch: ["(^|/|\\.)build.ya?ml$"], | ||
matchStrings: [ | ||
'# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>[^\\s]+?)(?: (?:lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[a-z-0-9]+?))?\\s+[A-Za-z0-9_]+?_VERSION\\s*:\\s*["\']?(?<currentValue>.+?)["\']?\\s', | ||
"# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>[^\\s]+?)(?: (?:lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[a-z-0-9]+?))?\\s+[A-Za-z0-9_]+?_VERSION\\s*:\\s*[\"']?(?<currentValue>.+?)[\"']?\\s", | ||
], | ||
}, | ||
{ | ||
customType: 'regex', | ||
fileMatch: ['^\\.github/(?:workflows|actions)/.+\\.ya?ml$'], | ||
customType: "regex", | ||
fileMatch: ["^\\.github/(?:workflows|actions)/.+\\.ya?ml$"], | ||
matchStrings: [ | ||
'uses:\\s+(?<depName>home-assistant\\/actions(?<path>\\/.*)?)@(?<currentDigest>[a-f0-9]+)', | ||
'uses:\\s+(?<depName>home-assistant\\/actions(?<path>\\/.*)?)@(?<currentValue>master)', | ||
"uses:\\s+(?<depName>home-assistant\\/actions(?<path>\\/.*)?)@(?<currentDigest>[a-f0-9]+)", | ||
"uses:\\s+(?<depName>home-assistant\\/actions(?<path>\\/.*)?)@(?<currentValue>master)", | ||
], | ||
currentValueTemplate: 'master', | ||
autoReplaceStringTemplate: 'uses: {{depName}}@{{#if newDigest}}{{newDigest}}{{#if newValue}} # {{newValue}}{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}{{/unless}}', | ||
packageNameTemplate: 'https://github.com/home-assistant/actions', | ||
depTypeTemplate: 'action', | ||
datasourceTemplate: 'git-refs', | ||
currentValueTemplate: "master", | ||
autoReplaceStringTemplate: "uses: {{depName}}@{{#if newDigest}}{{newDigest}}{{#if newValue}} # {{newValue}}{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}{{/unless}}", | ||
packageNameTemplate: "https://github.com/home-assistant/actions", | ||
depTypeTemplate: "action", | ||
datasourceTemplate: "git-refs", | ||
}, | ||
], | ||
} |