Skip to content

Commit

Permalink
chore(config): migrate config .github/renovate.json5
Browse files Browse the repository at this point in the history
  • Loading branch information
bfra-me[bot] authored Sep 24, 2023
1 parent b6273e9 commit e530668
Showing 1 changed file with 42 additions and 39 deletions.
81 changes: 42 additions & 39 deletions .github/renovate.json5
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",
},
],
}

0 comments on commit e530668

Please sign in to comment.