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 d4ce6d2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
28 changes: 27 additions & 1 deletion .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,32 @@
{
"matchManagers": ["github-actions"],
"addLabels": ["renovate/github-action"]
},
{
"matchDatasources": ["custom.debian"],
"groupName": "debian",
"versioning": "loose"
}
],
"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:[0-9a-z]{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),"newDigest": $$.(items.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])}] }'
]
}
]
}
}
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 d4ce6d2

Please sign in to comment.