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 Oct 25, 2024
1 parent 0ec8ae0 commit 677f7bf
Showing 1 changed file with 40 additions and 29 deletions.
69 changes: 40 additions & 29 deletions .github/renovate.json5
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}}",
},
],
}

0 comments on commit 677f7bf

Please sign in to comment.