Skip to content

Commit

Permalink
Use proper Renovate manager matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb authored Oct 16, 2024
1 parent de696da commit c0e0478
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 19 deletions.
31 changes: 12 additions & 19 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended", ":disableDependencyDashboard"],
"extends": [
"config:recommended",
":configMigration",
":disableDependencyDashboard",
"customManagers:helmChartYamlAppVersions"
],
"labels": ["dependencies"],
"rangeStrategy": "bump",
"packageRules": [
Expand All @@ -9,35 +14,23 @@
"versioning": "helm"
},
{
"matchManagers": ["helmv3"],
"matchManagers": ["helmv3", "helm-values"],
"matchUpdateTypes": ["minor", "patch"],
"bumpVersion": "patch"
},
{
"matchManagers": ["helmv3"],
"matchManagers": ["helmv3", "helm-values"],
"matchUpdateTypes": ["major"],
"bumpVersion": "minor"
},
{
"matchUpdateTypes": ["minor", "patch"],
"matchCurrentVersion": "!/^0/",
"matchUpdateTypes": ["!major"],
"automerge": true
}
],
"customManagers": [
{
"customType": "regex",
"fileMatch": ["(^|/)Chart.yaml$"],
"matchStrings": [
"\\nname: (?<depName>.*?)\\n",
"\\nappVersion: \"(?<currentValue>.*?)\"\\n"
],
"matchStringsStrategy": "combination",
"depNameTemplate": "ghcr.io/netbox-community/{{{depName}}}",
"datasourceTemplate": "docker",
"versioningTemplate": "semver-coerced"
}
],
"kubernetes": {
"fileMatch": ["^charts/.+\\.ya?ml$"]
},
"github-actions": {
"enabled": false
}
Expand Down
1 change: 1 addition & 0 deletions charts/netbox/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: v2
name: netbox
version: 5.0.0
# renovate: image=ghcr.io/netbox-community/netbox
appVersion: "v4.1.1"
type: application
kubeVersion: ^1.25.0-0
Expand Down

0 comments on commit c0e0478

Please sign in to comment.