Skip to content

Commit a11eb71

Browse files
committed
ci: add renovate configuration
Renovate is flexible enough to support our custom bake target including the package configuration. Signed-off-by: Moritz Wanzenböck <moritz.wanzenboeck@linbit.com>
1 parent e6d7050 commit a11eb71

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

.github/renovate.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"extends": ["config:recommended", "group:allNonMajor"],
3+
"enabledManagers": [],
4+
"customManagers": [
5+
{
6+
"customType": "regex",
7+
"managerFilePatterns": "dockerfiles/docker-bake.hcl",
8+
"matchStrings": [
9+
"#\\s*renovate:\\s*type=(?<type>.*?)\\s*url=(?<url>.*?)\\s*depName=(?<depName>.*?)\\s*(extractVersion=(?<extractVersion>.*?))?\\s*\\S+\\s*=\\s*\"(?<currentValue>.*)\""
10+
],
11+
"registryUrlTemplate": "{{{decodeURIComponent url}}}",
12+
"datasourceTemplate": "{{type}}",
13+
"extractVersionTemplate": "{{#if extractVersion}}{{{extractVersion}}}{{else}}^(?<version>.*)${{/if}}"
14+
}
15+
],
16+
"github-actions": {
17+
"description": "Managed by dependabot",
18+
"enabled": false
19+
},
20+
"dockerfile": {
21+
"description": "Managed manually",
22+
"enabled": false
23+
}
24+
}

dockerfiles/docker-bake.hcl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,16 @@ variable "CACHE" {
1616

1717
variable VERSIONS {
1818
default = {
19-
DRBD = ["9.2.14"]
20-
DRBD_REACTOR = "1.9.0-1"
19+
# renovate: type=github-tags url=https://github.com depName=LINBIT/drbd extractVersion=^drbd-(?<version>.*)$
20+
DRBD = "9.2.14"
21+
# renovate: type=github-tags url=https://github.com depName=LINBIT/k8s-await-election
2122
K8S_AWAIT_ELECTION = "v0.4.1"
22-
KTLS_UTILS = "1.1.0-1"
23-
LINSTOR = "1.32.1-1"
23+
# renovate: type=deb url=https://packages.linbit.com/public?suite=bookworm&components=misc&binaryArch=amd64 depName=drbd-reactor
24+
DRBD_REACTOR = "1.9.0-1"
25+
# renovate: type=deb url=https://packages.linbit.com/public?suite=bookworm&components=misc&binaryArch=amd64 depName=ktls-utils
26+
KTLS_UTILS = "1.1.0-1"
27+
# renovate: type=deb url=https://packages.linbit.com/public?suite=bookworm&components=misc&binaryArch=amd64 depName=linstor-common
28+
LINSTOR = "1.32.1-1"
2429
}
2530
}
2631

0 commit comments

Comments
 (0)