diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 0d9b2ec..527ebe6 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -117,6 +117,38 @@ { "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", + "versioningTemplate": "regex:^(?\\d{8})-(?\\d{4})$", + "matchStrings": [ + "= \"https://cloud.debian.org/images/cloud/bookworm/(?.+)/", + "debian-12-genericcloud-amd64-(?.+).qcow2\\s*checksum\\s*=\\s*\"(?sha512:.+)\"" + ] + } + ], + "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\":$join([\"https://cloud.debian.org/images/cloud/\",items[kind=\"Build\"].data.info.release])}]}" + ] + } + }, + "logLevelRemap": [ + { + "matchMessage": "/^Custom manager fetcher/", + "newLogLevel": "info" } ] } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f677f2c..096c26a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,6 @@ name: ci on: push: - pull_request: jobs: packer: