Added Custom Datasources and formatted file.

This commit is contained in:
Joseph Hanson 2023-10-24 10:54:13 -05:00
parent 32a9c055c8
commit 452d37ff9c
2 changed files with 101 additions and 31 deletions

View file

@ -4,30 +4,50 @@
"endpoint": "https://git.hsn.dev", "endpoint": "https://git.hsn.dev",
"extends": [ "extends": [
"config:recommended", "config:recommended",
"local>jahanson/valinor//.renovate/customDatasources.json5",
"local>jahanson/valinor//.renovate/customManagers.json5" "local>jahanson/valinor//.renovate/customManagers.json5"
], ],
"repositories": [], "repositories": [],
"flux": { "flux": {
"fileMatch": ["kubernetes/.+\\.ya?ml$"] "fileMatch": [
"kubernetes/.+\\.ya?ml$"
]
}, },
"helm-values": { "helm-values": {
"fileMatch": ["kubernetes/.+\\.ya?ml$"] "fileMatch": [
"kubernetes/.+\\.ya?ml$"
]
}, },
"kubernetes": { "kubernetes": {
"fileMatch": ["kubernetes/.+\\.ya?ml$"] "fileMatch": [
"kubernetes/.+\\.ya?ml$"
]
},
"customDatasources": {
"grafana-dashboards": {
"defaultRegistryUrlTemplate": "https://grafana.com/api/dashboards/{{packageName}}",
"format": "json",
"transformTemplates": [
"{\"releases\":[{\"version\": $string(revision)}]}"
]
}
}, },
"regexManagers": [ "regexManagers": [
{ {
"description": ["Process CRD dependencies - Chart and Github Release are the same version"], "description": [
"fileMatch": ["kubernetes/.+\\.ya?ml$"], "Process CRD dependencies - Chart and Github Release are the same version"
],
"fileMatch": [
"kubernetes/.+\\.ya?ml$"
],
"matchStrings": [ "matchStrings": [
"# renovate: registryUrl=(?<registryUrl>\\S+) chart=(?<depName>\\S+)\n.*?(?<currentValue>[^-\\s]*)\n", "# renovate: registryUrl=(?<registryUrl>\\S+) chart=(?<depName>\\S+)\n.*?(?<currentValue>[^-\\s]*)\n",
], ],
"datasourceTemplate": "helm" "datasourceTemplate": "helm"
}, },
{ {
"description": ["Generic Docker image Regex manager"], "description": [
"Generic Docker image Regex manager"
],
"fileMatch": [ "fileMatch": [
"infrastructure/.+\\.ya?ml$", "infrastructure/.+\\.ya?ml$",
"infrastructure/.+\\.tf$" "infrastructure/.+\\.tf$"
@ -39,7 +59,9 @@
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}" "versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
}, },
{ {
"description": ["Raw GitHub URL Regex manager"], "description": [
"Raw GitHub URL Regex manager"
],
"fileMatch": [ "fileMatch": [
"infrastructure/.+\\.ya?ml$", "infrastructure/.+\\.ya?ml$",
"kubernetes/.+\\.ya?ml$" "kubernetes/.+\\.ya?ml$"
@ -54,21 +76,35 @@
"packageRules": [ "packageRules": [
{ {
"description": "Use custom versioning for Vector", "description": "Use custom versioning for Vector",
"matchDatasources": ["docker"], "matchDatasources": [
"matchPackageNames": ["docker.io/timberio/vector"], "docker"
],
"matchPackageNames": [
"docker.io/timberio/vector"
],
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)-(?<compatibility>.*)$" "versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)-(?<compatibility>.*)$"
}, },
{ {
"description": "Use custom versioning for Minio", "description": "Use custom versioning for Minio",
"matchDatasources": ["docker"], "matchDatasources": [
"docker"
],
"versioning": "regex:^RELEASE\\.(?<major>\\d+)-(?<minor>\\d+)-(?<patch>\\d+)T.*Z(-(?<compatibility>.*))?$", "versioning": "regex:^RELEASE\\.(?<major>\\d+)-(?<minor>\\d+)-(?<patch>\\d+)T.*Z(-(?<compatibility>.*))?$",
"matchPackageNames": ["quay.io/minio/minio"] "matchPackageNames": [
"quay.io/minio/minio"
]
}, },
{ {
"description": "Flux Group", "description": "Flux Group",
"groupName": "Flux", "groupName": "Flux",
"matchPackagePatterns": ["^flux", "^ghcr.io/fluxcd/"], "matchPackagePatterns": [
"matchDatasources": ["docker", "github-tags"], "^flux",
"^ghcr.io/fluxcd/"
],
"matchDatasources": [
"docker",
"github-tags"
],
"versioning": "semver", "versioning": "semver",
"group": { "group": {
"commitMessageTopic": "{{{groupName}}} group", "commitMessageTopic": "{{{groupName}}} group",
@ -78,8 +114,14 @@
{ {
"description": "Mastodon images", "description": "Mastodon images",
"groupName": "Mastodon", "groupName": "Mastodon",
"matchPackagePatterns": ["mastodon", "^ghcr.io/mastodon/"], "matchPackagePatterns": [
"matchDatasources": ["docker", "github-tags"], "mastodon",
"^ghcr.io/mastodon/"
],
"matchDatasources": [
"docker",
"github-tags"
],
"versioning": "semver", "versioning": "semver",
"group": { "group": {
"commitMessageTopic": "{{{groupName}}} group", "commitMessageTopic": "{{{groupName}}} group",
@ -93,7 +135,9 @@
"docker.io/1password/connect-sync", "docker.io/1password/connect-sync",
"docker.io/1password/connect-api", "docker.io/1password/connect-api",
], ],
"matchDatasources": ["docker"], "matchDatasources": [
"docker"
],
"group": { "group": {
"commitMessageTopic": "{{{groupName}}} group" "commitMessageTopic": "{{{groupName}}} group"
}, },
@ -102,8 +146,13 @@
{ {
"description": "Rook-Ceph image and chart", "description": "Rook-Ceph image and chart",
"groupName": "Rook Ceph", "groupName": "Rook Ceph",
"matchPackagePatterns": ["rook.ceph"], "matchPackagePatterns": [
"matchDatasources": ["docker", "helm"], "rook.ceph"
],
"matchDatasources": [
"docker",
"helm"
],
"group": { "group": {
"commitMessageTopic": "{{{groupName}}} group" "commitMessageTopic": "{{{groupName}}} group"
}, },
@ -117,7 +166,10 @@
"quay.io/cilium/operator-generic", "quay.io/cilium/operator-generic",
"cilium", "cilium",
], ],
"matchDatasources": ["helm", "docker"], "matchDatasources": [
"helm",
"docker"
],
"group": { "group": {
"commitMessageTopic": "{{{groupName}}} group" "commitMessageTopic": "{{{groupName}}} group"
}, },
@ -130,7 +182,9 @@
"snapshot-controller", "snapshot-controller",
"snapshot-validation-webhook" "snapshot-validation-webhook"
], ],
"matchDatasources": ["helm"], "matchDatasources": [
"helm"
],
"group": { "group": {
"commitMessageTopic": "{{{groupName}}} group" "commitMessageTopic": "{{{groupName}}} group"
}, },
@ -143,8 +197,15 @@
"quay.io/thanos/thanos", "quay.io/thanos/thanos",
"thanos" "thanos"
], ],
"matchDatasources": ["docker", "github-releases", "helm"], "matchDatasources": [
"matchUpdateTypes": ["minor", "patch"], "docker",
"github-releases",
"helm"
],
"matchUpdateTypes": [
"minor",
"patch"
],
"group": { "group": {
"commitMessageTopic": "{{{groupName}}} group" "commitMessageTopic": "{{{groupName}}} group"
}, },
@ -152,9 +213,18 @@
{ {
"description": "Vector image and chart - versions do not match", "description": "Vector image and chart - versions do not match",
"groupName": "Vector", "groupName": "Vector",
"matchPackagePatterns": ["vector"], "matchPackagePatterns": [
"matchDatasources": ["docker", "github-releases", "helm"], "vector"
"matchUpdateTypes": ["minor", "patch"], ],
"matchDatasources": [
"docker",
"github-releases",
"helm"
],
"matchUpdateTypes": [
"minor",
"patch"
],
"group": { "group": {
"commitMessageTopic": "{{{groupName}}} group" "commitMessageTopic": "{{{groupName}}} group"
}, },