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"]