Skip to content

Commit

Permalink
Add renovate for debian
Browse files Browse the repository at this point in the history
  • Loading branch information
JosBritton committed Oct 20, 2024
1 parent 8d8220d commit 44d6101
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -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/(?<currentValue>)",
"/debian-12-genericcloud-amd64-(?<currentValue>).qcow2\\s*checksum\\s*=\\s*\"(?<currentDigest>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}]}"
]
}
]
}
}

0 comments on commit 44d6101

Please sign in to comment.