Skip to content

Commit

Permalink
ci: renovate update
Browse files Browse the repository at this point in the history
- add .renovate directory for extends
- add more groups
- add talos installer customManager
  • Loading branch information
timtorChen committed Jan 23, 2025
1 parent ecf7c82 commit cec24af
Show file tree
Hide file tree
Showing 10 changed files with 150 additions and 66 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: renovate
- "main"
paths:
- "renovate.json5"
- "**/renovate.json5"
- ".renovate/**"
schedule:
- cron: "0 0 * * *" # every 08:00 UTC+8
jobs:
Expand Down
25 changes: 25 additions & 0 deletions .renovate/autoMerge.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"automerge": true,
"matchDepNames": [
"deluan/navidrome",
"ghcr.io/dani-garcia/vaultwarden",
"ghcr.io/immich-app/immich-**",
"cloudflare/cloudflared",
"matusnovak/prometheus-smartctl",
"jacobalberty/unifi",
"ghcr.io/unpoller/unpoller"
],
"matchUpdateTypes": ["patch"],
"automergeType": "branch"
},
{
"automerge": true,
"matchDepNames": ["grafana"],
"matchUpdateTypes": ["minor", "patch"],
"automergeType": "branch"
}
]
}
14 changes: 14 additions & 0 deletions .renovate/customManagers.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customManagers": [
// talos installer
{
"customType": "regex",
"fileMatch": ["^talos/.*\\.yaml$"],
"datasourceTemplate": "docker",
"matchStrings": [
"# renovate: depName=(?<depName>.*?)\n *image: factory\\.talos\\.dev\/installer\/[a-z0-9]+:(?<currentValue>v[\\d\\.]+)"
]
}
]
}
76 changes: 76 additions & 0 deletions .renovate/groups.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
// talos
{
"groupName": "talos",
"matchFileNames": ["kubernetes/**", "talos/**"],
"matchDatasources": "docker",
"matchDepNames": [
"ghcr.io/siderolabs/talosctl",
"ghcr.io/siderolabs/installer"
],
"separateMultipleMinor": true
},
// kubernetes
{
"groupName": "kubernetes",
"matchFileNames": ["talos/**"],
"matchDatasources": "docker",
"matchDepNames": [
"ghcr.io/siderolabs/kubelet",
"registry.k8s.io/kube-apiserver",
"registry.k8s.io/kube-controller-manager",
"registry.k8s.io/kube-scheduler"
],
"separateMultipleMinor": true
},
// snapshot-controller
{
"groupName": "snapshot-controller",
"matchFileNames": ["kubernetes/**"],
"matchDatasources": "github-tags",
"matchDepNames": [
"snapshot-controller",
"external-snapshotter-crd"
],
// to the latest
"separateMajorMinor": false,
"separateMultipleMajor": false
},
// rook-ceph
{
"groupName": "rook-ceph",
"matchFileNames": ["kubernetes/**"],
"matchDatasources": "helm",
"matchDepNames": ["rook-ceph"],
"separateMultipleMinor": true
},
{
"groupName": "ceph",
"matchFileNames": ["kubernetes/**"],
"matchDatasources": "docker",
"matchDepNames": ["quay.io/ceph/ceph"]
},
// intel-device-plugins
{
"groupName": "intel-device-plugins",
"matchFileNames": ["kubernetes/**"],
"matchDatasources": "helm",
"matchDepNames": [
"intel-device-plugins-gpu",
"intel-device-plugins-operator"
]
},
// apps
{
"groupName": "immich",
"matchFileNames": ["kubernetes/**"],
"matchDatasources": "docker",
"matchDepNames": [
"ghcr.io/immich-app/immich-server",
"ghcr.io/immich-app/immich-machine-learning"
]
}
]
}
88 changes: 25 additions & 63 deletions renovate.json5
Original file line number Diff line number Diff line change
@@ -1,70 +1,32 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
// configurations
// https://docs.renovatebot.com/configuration-options
extends: ["config:recommended", ":disableRateLimiting"],
timezone: "Asia/Taipei",
dependencyDashboard: true,
kubernetes: {
fileMatch: ["^kubernetes/.*\\.yaml$"],
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":disableRateLimiting",
"github>timtorChen/homelab-action//.renovate/groups.json5",
"github>timtorChen/homelab-action//.renovate/customManagers.json5",
"github>timtorChen/homelab-action//.renovate/autoMerge.json5"
],
"timezone": "Asia/Taipei",
"dependencyDashboard": true,
"kubernetes": {
"fileMatch": ["^kubernetes/.*\\.yaml$"]
},
flux: {
fileMatch: ["^kubernetes/.*\\.yaml$"],
"flux": {
"fileMatch": ["^kubernetes/.*\\.yaml$"]
},
"helm-values": {
fileMatch: ["^(kubernetes|talos)/.*\\.yaml$"],
"fileMatch": ["^(kubernetes|talos)/.*\\.yaml$"]
},
ignorePaths: ["**/archive/**"],
packageRules: [
// Groups
{
matchDepPatterns: [
"ghcr.io/immich-app/immich-server",
"ghcr.io/immich-app/immich-machine-learning",
],
groupName: "immich",
},
{
matchDepPatterns: [
"ghcr.io/siderolabs/kubelet",
"registry.k8s.io/kube-apiserver",
"registry.k8s.io/kube-controller-manager",
"registry.k8s.io/kube-scheduler",
"gcr.io/etcd-development/etcd",
"docker.io/coredns/coredns",
],
groupName: "kubernetes",
},
{
matchDepPatterns: ["ghcr.io/siderolabs/installer"],
commitMessageTopic: "talos",
groupName: "talos",
},
"ignorePaths": ["**/archive/**"],
"customManagers": [
{
matchPackagePatterns: ["hashicorp/terraform", "hashicorp/aws"],
groupName: "terraform",
},
// Auto merge
{
matchDepPatterns: [
"deluan/navidrome",
"ghcr.io/dani-garcia/vaultwarden",
"ghcr.io/immich-app/immich-server",
"ghcr.io/immich-app/immich-machine-learning",
"cloudflare/cloudflared",
"matusnovak/prometheus-smartctl",
"jacobalberty/unifi",
"ghcr.io/unpoller/unpoller",
],
matchUpdateTypes: ["patch"],
automergeType: "branch",
automerge: true,
},
{
matchDepPatterns: ["grafana"],
matchUpdateTypes: ["minor", "patch"],
automergeType: "branch",
automerge: true,
},
],
"customType": "regex",
"fileMatch": ["^talos/.*\\.yaml$"],
"datasourceTemplate": "docker",
"matchStrings": [
"# renovate: depName=(?<depName>.*?)\n *image: factory\\.talos\\.dev\/installer\/[a-z0-9]+:(?<currentValue>v[\\d\\.]+)"
]
}
]
}
1 change: 1 addition & 0 deletions talos/nuc11tnhi50l-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ machine:
- SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="48:21:0b:2c:f4:8c", NAME="eth1"
install:
disk: /dev/sda
# renovate: depName=ghcr.io/siderolabs/installer
image: factory.talos.dev/installer/ed036d0640097a4e7af413ee089851a12963cd2e2e1715f8866d551d17c2ec62:v1.9.0
kubelet:
image: ghcr.io/siderolabs/kubelet:v1.32.0
1 change: 1 addition & 0 deletions talos/nuc11tnhi50l-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ machine:
- SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="48:21:0b:2c:f3:9b", NAME="eth1"
install:
disk: /dev/sda
# renovate: depName=ghcr.io/siderolabs/installer
image: factory.talos.dev/installer/ed036d0640097a4e7af413ee089851a12963cd2e2e1715f8866d551d17c2ec62:v1.9.0
kubelet:
image: ghcr.io/siderolabs/kubelet:v1.32.0
1 change: 1 addition & 0 deletions talos/nuc11tnhi50l-3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ machine:
- SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="54:b2:03:fd:73:0a", NAME="eth1"
install:
disk: /dev/sda
# renovate: depName=ghcr.io/siderolabs/installer
image: factory.talos.dev/installer/ed036d0640097a4e7af413ee089851a12963cd2e2e1715f8866d551d17c2ec62:v1.9.0
kubelet:
image: ghcr.io/siderolabs/kubelet:v1.32.0
4 changes: 4 additions & 0 deletions talos/pi4b-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ machine:
type: controlplane
network:
hostname: amethyst-pi4b-1
install:
disk: /dev/sda
# renovate: depName=ghcr.io/siderolabs/installer
image: factory.talos.dev/installer/ee21ef4a5ef808a9b7484cc0dda0f25075021691c8c09a276591eedb638ea1f9:v1.9.0
kubelet:
image: ghcr.io/siderolabs/kubelet:v1.32.0
cluster:
Expand Down
4 changes: 2 additions & 2 deletions talos/roles/controlplane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ machine:
key: ${machine_ca_key}
certSANs: []
install:
image: factory.talos.dev/installer/ee21ef4a5ef808a9b7484cc0dda0f25075021691c8c09a276591eedb638ea1f9:v1.9.0
disk: /dev/sda
image: ""
disk: ""
wipe: false
extraKernelArgs:
- talos.logging.kernel=tcp://192.168.253.100:3001
Expand Down

0 comments on commit cec24af

Please sign in to comment.