From f49b0c72933e18ccfdd990b6bb5c831095802b27 Mon Sep 17 00:00:00 2001 From: Fabian Koller Date: Tue, 16 Jun 2026 10:11:53 +0200 Subject: [PATCH] renovate: automate SCI package updates for rel-2150-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 '+bp2150' 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 '+bp2150' via extractVersionTemplate, excluding staging (+sta) and cross-branch (+bp1877) 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..c756739 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-2150-dev", + "managerFilePatterns": ["/features/sci/exec\\.config$/"], + "matchStrings": [ + "LIBVIRT_VERSION=\"(?[^%]+)%2Bbp2150\"" + ], + "depNameTemplate": "gardenlinux/package-libvirt", + "datasourceTemplate": "github-releases", + "extractVersionTemplate": "^(?.+)\\+bp2150$", + "versioningTemplate": "loose", + "autoReplaceStringTemplate": "LIBVIRT_VERSION=\"{{{newValue}}}%2Bbp2150\"" + }, + { + "customType": "regex", + "description": "Update cloud-hypervisor-gl package version for rel-2150-dev", + "managerFilePatterns": ["/features/sci/exec\\.config$/"], + "matchStrings": [ + "CLOUD_HYPERVISOR_VERSION=\"(?[^%]+)%2Bbp2150\"" + ], + "depNameTemplate": "gardenlinux/package-cloud-hypervisor-gl", + "datasourceTemplate": "github-releases", + "extractVersionTemplate": "^(?.+)\\+bp2150$", + "versioningTemplate": "loose", + "autoReplaceStringTemplate": "CLOUD_HYPERVISOR_VERSION=\"{{{newValue}}}%2Bbp2150\"" + }, + { + "customType": "regex", + "description": "Update edk2-cloud-hypervisor-gl package version for rel-2150-dev", + "managerFilePatterns": ["/features/sci/exec\\.config$/"], + "matchStrings": [ + "EDK2_VERSION=\"(?[^%]+)%2Bbp2150\"" + ], + "depNameTemplate": "gardenlinux/package-edk2-cloud-hypervisor-gl", + "datasourceTemplate": "github-releases", + "extractVersionTemplate": "^(?.+)\\+bp2150$", + "versioningTemplate": "loose", + "autoReplaceStringTemplate": "EDK2_VERSION=\"{{{newValue}}}%2Bbp2150\"" + } + ] }