Skip to content

Commit

Permalink
migrate renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
angelnu committed Sep 15, 2024
1 parent f814869 commit 8b0701b
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
extends: [
"extends": [
"github>angelnu/renovate-config:default-automerge.json",
"github>angelnu/k8s-gitops//.github/renovate/disabledDatasources.json5",
"github>angelnu/k8s-gitops//.github/renovate/groups.json5",
],
platform: "github",
username: "angelnu-bot[bot]",
gitAuthor: "angelnu-bot[bot] <115925344+angelnu-bot[bot]@users.noreply.github.com>",
repositories: ["angelnu/k8s-gitops"],

ignorePaths: ["ansible/group_vars/all.yaml"],
"github>angelnu/k8s-gitops//.github/renovate/groups.json5"
],
"platform": "github",
"username": "angelnu-bot[bot]",
"gitAuthor": "angelnu-bot[bot] <115925344+angelnu-bot[bot]@users.noreply.github.com>",
"repositories": ["angelnu/k8s-gitops"],
"ignorePaths": ["ansible/group_vars/all.yaml"],
"flux": {
"fileMatch": ["(apps|base|clusters|core|crds|settings)/.+\\.ya?ml$"]
},
Expand All @@ -20,19 +19,21 @@
"kubernetes": {
"fileMatch": ["(apps|base|clusters|core|crds|settings)/.+\\.ya?ml$"]
},
"regexManagers": [
"customManagers": [
{
"customType": "regex",
"description": "Process CRD dependencies",
"fileMatch": ["(apps|base|clusters|core|crds|settings)/.+\\.ya?ml$"],
"matchStrings": [
// GitRepository where 'Git release/tag' matches 'Helm' version
"registryUrl=(?<registryUrl>\\S+) chart=(?<depName>\\S+)\n.*?(?<currentValue>[^-\\s]*)\n",
// Kustomization where 'GitHub release artifact URL' matches 'Docker image' version
"datasource=(?<datasource>\\S+) image=(?<depName>\\S+)\n.*?-\\s(.*?)\/(?<currentValue>[^/]+)\/[^/]+\n"
"datasource=(?<datasource>\\S+) image=(?<depName>\\S+)\n.*?-\\s(.*?)/(?<currentValue>[^/]+)/[^/]+\n"
],
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}helm{{/if}}"
},
{
"customType": "regex",
"description": "Process various dependencies",
"fileMatch": [
"ansible/.+\\.ya?ml$",
Expand All @@ -45,6 +46,7 @@
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
},
{
"customType": "regex",
"description": "Process raw GitHub URLs",
"fileMatch": ["(apps|base|clusters|core|crds|settings)/.+\\.ya?ml$"],
"matchStrings": [
Expand Down Expand Up @@ -72,4 +74,4 @@
"matchPackageNames": ["quay.io/minio/minio"]
}
]
}
}

0 comments on commit 8b0701b

Please sign in to comment.