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
0ec8ae0
commit 677f7bf
Showing
1 changed file
with
40 additions
and
29 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,56 +1,67 @@ | ||
{ | ||
$schema: 'https://docs.renovatebot.com/renovate-schema.json', | ||
extends: ['github>bfra-me/renovate-config#v3', 'github>bfra-me/renovate-config:internal.json5#v3.5.2'], | ||
$schema: "https://docs.renovatebot.com/renovate-schema.json", | ||
extends: [ | ||
"github>bfra-me/renovate-config#v3", | ||
"github>bfra-me/renovate-config:internal.json5#v3.5.2", | ||
], | ||
packageRules: [ | ||
{ | ||
matchDatasources: ['docker'], | ||
matchPackagePrefixes: ['ghcr.io/home-assistant/', 'home-assistant/'], | ||
groupName: 'Home Assistant Add-ons', | ||
groupSlug: 'home-assistant-addons', | ||
matchDatasources: ["docker"], | ||
groupName: "Home Assistant Add-ons", | ||
groupSlug: "home-assistant-addons", | ||
matchPackageNames: [ | ||
"ghcr.io/home-assistant/{/,}**", | ||
"home-assistant/{/,}**", | ||
], | ||
}, | ||
{ | ||
matchPackagePrefixes: ['ghcr.io/hassio-addons/', 'hassio-addons/'], | ||
groupName: 'hassio-addons', | ||
groupName: "hassio-addons", | ||
matchPackageNames: [ | ||
"ghcr.io/hassio-addons/{/,}**", | ||
"hassio-addons/{/,}**", | ||
], | ||
}, | ||
{ | ||
matchDepPatterns: ['^home-assistant/actions(\\/.*)?$'], | ||
groupName: 'Home Assistant Actions', | ||
groupName: "Home Assistant Actions", | ||
matchDepNames: ["/^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, | ||
}, | ||
], | ||
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', | ||
'ARG BUILD_FROM=(?<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", | ||
"ARG BUILD_FROM=(?<depName>[a-z0-9.\\/-]+)(?::(?<currentValue>[a-z0-9.-]+))?(?:@(?<currentDigest>sha256:[a-f0-9]+))?\\s", | ||
], | ||
datasourceTemplate: 'docker', | ||
datasourceTemplate: "docker", | ||
}, | ||
{ | ||
customType: 'regex', | ||
fileMatch: ['(^|/|\\.)Dockerfile$', '(^|/|\\.)build.ya?ml$'], | ||
customType: "regex", | ||
fileMatch: ["(^|/|\\.)Dockerfile$", "(^|/|\\.)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: ['(^|/|\\.)Dockerfile$'], | ||
matchStrings: ['\\s\\s(?<package>[a-z0-9-]+)=(?<currentValue>[a-z0-9_.-]+)\\s+'], | ||
versioningTemplate: 'loose', | ||
datasourceTemplate: 'repology', | ||
depNameTemplate: 'alpine_3_20/{{package}}', | ||
customType: "regex", | ||
fileMatch: ["(^|/|\\.)Dockerfile$"], | ||
matchStrings: [ | ||
"\\s\\s(?<package>[a-z0-9-]+)=(?<currentValue>[a-z0-9_.-]+)\\s+", | ||
], | ||
versioningTemplate: "loose", | ||
datasourceTemplate: "repology", | ||
depNameTemplate: "alpine_3_20/{{package}}", | ||
}, | ||
], | ||
} |