From 44d6101241e00fdef207fa9acb9a1d60c911ef53 Mon Sep 17 00:00:00 2001 From: Joseph Britton <85815005+JosBritton@users.noreply.github.com> Date: Sat, 19 Oct 2024 23:41:21 -0700 Subject: [PATCH] Add renovate for debian --- .github/renovate.json5 | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 0d9b2ec..b147a4b 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -117,6 +117,31 @@ { "matchManagers": ["github-actions"], "addLabels": ["renovate/github-action"] + }, + { + "matchDataSources": ["custom.debian"], + "groupName": "all-debian" + } + ], + "customManagers": [ + { + "customType": "regex", + "fileMatch": ["^example\\.pkrvars\\.hcl$"], + "datasourceTemplate": "custom.debian", + "depNameTemplate": "debian", + "matchStrings": [ + "=\\s*\"https://cloud.debian.org/images/cloud/bookworm/(?)", + "/debian-12-genericcloud-amd64-(?).qcow2\\s*checksum\\s*=\\s*\"(?sha512:[a-f0-9]{128})\"" + ] + } + ], + "customDatasources": { + "debian": { + "defaultRegistryUrlTemplate": "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.json", + "format": "json", + "transformTemplates": [ + "{\"releases\": [{\"version\": items[kind=\"Build\"].data.info.version,\"digest\": items[kind=\"Upload\"].metadata[labels.\"upload.cloud.debian.org/image-format\"=\"qcow2\"].annotations.\"cloud.debian.org/digest\",\"sourceUrl\": \"https://cloud.debian.org/images/cloud/\" & items[kind=\"Build\"].data.info.release}]}" + ] } - ] + } }