From 9614b72d90968d0ad15667c5c08162aba81db927 Mon Sep 17 00:00:00 2001 From: Fabian Koller Date: Tue, 16 Jun 2026 10:11:34 +0200 Subject: [PATCH] renovate: automate SCI package updates for rel-1877-dev Add custom regex managers for libvirt, cloud-hypervisor-gl, and edk2-cloud-hypervisor-gl packages. These packages are hosted in gardenlinux org repos and use branch-specific release tags with a '+bp1877' suffix. The managers: - Extract the version prefix (before the %2B-encoded '+') as the current value for comparison against GitHub release tags - Filter datasource releases to only those ending in '+bp1877' via extractVersionTemplate, excluding staging (+sta) and cross-branch (+bp2150) releases - Write back with the correct URL-encoded suffix via autoReplaceStringTemplate --- renovate.json | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index 7190a60..1ba6e4a 100644 --- a/renovate.json +++ b/renovate.json @@ -1,3 +1,44 @@ { - "$schema": "https://docs.renovatebot.com/renovate-schema.json" + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "customManagers": [ + { + "customType": "regex", + "description": "Update libvirt package version for rel-1877-dev", + "managerFilePatterns": ["/features/sci/exec\\.config$/"], + "matchStrings": [ + "LIBVIRT_VERSION=\"(?[^%]+)%2Bbp1877\"" + ], + "depNameTemplate": "gardenlinux/package-libvirt", + "datasourceTemplate": "github-releases", + "extractVersionTemplate": "^(?.+)\\+bp1877$", + "versioningTemplate": "loose", + "autoReplaceStringTemplate": "LIBVIRT_VERSION=\"{{{newValue}}}%2Bbp1877\"" + }, + { + "customType": "regex", + "description": "Update cloud-hypervisor-gl package version for rel-1877-dev", + "managerFilePatterns": ["/features/sci/exec\\.config$/"], + "matchStrings": [ + "CLOUD_HYPERVISOR_VERSION=\"(?[^%]+)%2Bbp1877\"" + ], + "depNameTemplate": "gardenlinux/package-cloud-hypervisor-gl", + "datasourceTemplate": "github-releases", + "extractVersionTemplate": "^(?.+)\\+bp1877$", + "versioningTemplate": "loose", + "autoReplaceStringTemplate": "CLOUD_HYPERVISOR_VERSION=\"{{{newValue}}}%2Bbp1877\"" + }, + { + "customType": "regex", + "description": "Update edk2-cloud-hypervisor-gl package version for rel-1877-dev", + "managerFilePatterns": ["/features/sci/exec\\.config$/"], + "matchStrings": [ + "EDK2_VERSION=\"(?[^%]+)%2Bbp1877\"" + ], + "depNameTemplate": "gardenlinux/package-edk2-cloud-hypervisor-gl", + "datasourceTemplate": "github-releases", + "extractVersionTemplate": "^(?.+)\\+bp1877$", + "versioningTemplate": "loose", + "autoReplaceStringTemplate": "EDK2_VERSION=\"{{{newValue}}}%2Bbp1877\"" + } + ] }