From 677f7bf51ff0f998ee2a838317d1592d0dd00ba7 Mon Sep 17 00:00:00 2001 From: "bfra-me[bot]" <118100583+bfra-me[bot]@users.noreply.github.com> Date: Fri, 25 Oct 2024 10:20:34 +0000 Subject: [PATCH] chore(config): migrate config .github/renovate.json5 --- .github/renovate.json5 | 69 ++++++++++++++++++++++++------------------ 1 file changed, 40 insertions(+), 29 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 047c67d..14342ef 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -1,27 +1,36 @@ { - $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: '^(?\\d+\\.\\d+\\.\\d+)$', - versioning: 'regex:^(?\\d+)\\.(?\\d+)\\.(?\\d+)$', - commitMessageExtra: 'to {{#if isPinDigest}}{{{newDigestShort}}}{{else}}{{#if newValue}}{{{newValue}}}{{else}}{{{newDigestShort}}}{{/if}}{{/if}}', + matchPackageNames: ["home-assistant/builder"], + matchDepTypes: ["action"], + extractVersion: "^(?\\d+\\.\\d+\\.\\d+)$", + versioning: "regex:^(?\\d+)\\.(?\\d+)\\.(?\\d+)$", + commitMessageExtra: "to {{#if isPinDigest}}{{{newDigestShort}}}{{else}}{{#if newValue}}{{{newValue}}}{{else}}{{{newDigestShort}}}{{/if}}{{/if}}", pinDigests: false, separateMajorMinor: false, separateMinorPatch: false, @@ -29,28 +38,30 @@ ], customManagers: [ { - customType: 'regex', - fileMatch: ['(^|/|\\.)build.ya?ml$'], + customType: "regex", + fileMatch: ["(^|/|\\.)build.ya?ml$"], matchStrings: [ - '(aarch64|amd64|armhf|armv7|i386):\\s+["\']?(?[a-z0-9.\\/-]+)(?::(?[a-z0-9.-]+))?(?:@(?sha256:[a-f0-9]+))?["\']?\\s', - 'ARG BUILD_FROM=(?[a-z0-9.\\/-]+)(?::(?[a-z0-9.-]+))?(?:@(?sha256:[a-f0-9]+))?\\s', + "(aarch64|amd64|armhf|armv7|i386):\\s+[\"']?(?[a-z0-9.\\/-]+)(?::(?[a-z0-9.-]+))?(?:@(?sha256:[a-f0-9]+))?[\"']?\\s", + "ARG BUILD_FROM=(?[a-z0-9.\\/-]+)(?::(?[a-z0-9.-]+))?(?:@(?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=(?[a-z-]+?) depName=(?[^\\s]+?)(?: (?:lookupName|packageName)=(?[^\\s]+?))?(?: versioning=(?[a-z-0-9]+?))?\\s+[A-Za-z0-9_]+?_VERSION\\s*:\\s*["\']?(?.+?)["\']?\\s', + "# renovate: datasource=(?[a-z-]+?) depName=(?[^\\s]+?)(?: (?:lookupName|packageName)=(?[^\\s]+?))?(?: versioning=(?[a-z-0-9]+?))?\\s+[A-Za-z0-9_]+?_VERSION\\s*:\\s*[\"']?(?.+?)[\"']?\\s", ], }, { - customType: 'regex', - fileMatch: ['(^|/|\\.)Dockerfile$'], - matchStrings: ['\\s\\s(?[a-z0-9-]+)=(?[a-z0-9_.-]+)\\s+'], - versioningTemplate: 'loose', - datasourceTemplate: 'repology', - depNameTemplate: 'alpine_3_20/{{package}}', + customType: "regex", + fileMatch: ["(^|/|\\.)Dockerfile$"], + matchStrings: [ + "\\s\\s(?[a-z0-9-]+)=(?[a-z0-9_.-]+)\\s+", + ], + versioningTemplate: "loose", + datasourceTemplate: "repology", + depNameTemplate: "alpine_3_20/{{package}}", }, ], }