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 cf5750d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,39 @@
{
"matchManagers": ["github-actions"],
"addLabels": ["renovate/github-action"]
},
{
"matchDatasources": ["custom.debian"],
"groupName": "debian",
"versioning": "loose"
// "versioning": "regex:^(?<major>\\d{8})-(?<minor>\\d{4})$",
}
],
"customManagers": [
{
"customType": "regex",
"fileMatch": ["^example\\.pkrvars\\.hcl$"],
"datasourceTemplate": "custom.debian",
"depNameTemplate": "debian",
"matchStrings": [
"= \"https://cloud.debian.org/images/cloud/bookworm/(?<currentValue>.+)/",
"debian-12-genericcloud-amd64-(?<currentValue>.+).qcow2\\s*checksum\\s*=\\s*\"(?<currentDigest>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"
}
]
}
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: ci

on:
push:
pull_request:

jobs:
packer:
Expand Down

0 comments on commit cf5750d

Please sign in to comment.