From 8337aea818369903596b961b3acd399a2364b5b5 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 12 Sep 2026 19:39:40 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Replace=20Repology=20with=20Alpi?= =?UTF-8?q?ne=20CDN=20datasource=20for=20package=20pins?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Renovate's Repology datasource stopped resolving Alpine package pins across the organization, so every alpine_3_24/* lookup returned no result and pinned packages were no longer updated at all. Switch the Alpine custom manager to a custom datasource that reads the Alpine CDN directory listing directly, using extractVersionTemplate to pull the version out of each .apk filename. libnsl-dev lives in the community repository and gets its own registry URL, since custom datasources only consult the first registry. --- .github/renovate.json | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/renovate.json b/.github/renovate.json index b1cb383..cc8f201 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -6,6 +6,12 @@ "labels": ["dependencies", "no-stale"], "commitMessagePrefix": "⬆️", "commitMessageTopic": "{{depName}}", + "customDatasources": { + "alpine": { + "defaultRegistryUrlTemplate": "https://dl-cdn.alpinelinux.org/alpine/v3.24/main/x86_64/", + "format": "html" + } + }, "customManagers": [ { "customType": "regex", @@ -25,8 +31,9 @@ "\\s\\s(?[a-z0-9][a-z0-9-_]+)=(?[a-z0-9-_.]+)\\s+" ], "versioningTemplate": "loose", - "datasourceTemplate": "repology", - "depNameTemplate": "alpine_3_24/{{package}}" + "datasourceTemplate": "custom.alpine", + "depNameTemplate": "alpine_3_24/{{package}}", + "extractVersionTemplate": "^{{{package}}}-(?\\d.*)\\.apk$" }, { "customType": "regex", @@ -58,9 +65,17 @@ ], "packageRules": [ { - "matchDatasources": ["repology"], + "matchDatasources": ["custom.alpine"], "automerge": true }, + { + "description": "Packages that live in the Alpine community repository", + "matchDatasources": ["custom.alpine"], + "matchPackageNames": ["alpine_3_24/libnsl-dev"], + "registryUrls": [ + "https://dl-cdn.alpinelinux.org/alpine/v3.24/community/x86_64/" + ] + }, { "groupName": "App base image", "matchDatasources": ["docker"]