mirror of
https://github.com/ahinko/home-ops
synced 2026-04-21 13:37:24 +00:00
fix: update renovate config
This commit is contained in:
parent
bacf0f99ea
commit
8c672a26b0
15 changed files with 122 additions and 238 deletions
39
.github/renovate.json5
vendored
39
.github/renovate.json5
vendored
|
|
@ -1,39 +0,0 @@
|
|||
{
|
||||
$schema: "https://docs.renovatebot.com/renovate-schema.json",
|
||||
extends: [
|
||||
"config:recommended",
|
||||
"docker:enableMajor",
|
||||
"replacements:k8s-registry-move",
|
||||
":automergeBranch",
|
||||
":disableRateLimiting",
|
||||
":dependencyDashboard",
|
||||
":semanticCommits",
|
||||
":skipStatusChecks",
|
||||
":timezone(Europe/Stockholm)",
|
||||
"github>ahinko/home-ops//.github/renovate/allowedVersions.json5",
|
||||
"github>ahinko/home-ops//.github/renovate/autoMerge.json5",
|
||||
"github>ahinko/home-ops//.github/renovate/commitMessage.json5",
|
||||
"github>ahinko/home-ops//.github/renovate/disabledDatasources.json5",
|
||||
"github>ahinko/home-ops//.github/renovate/grafanadashboards.json5",
|
||||
"github>ahinko/home-ops//.github/renovate/groups.json5",
|
||||
"github>ahinko/home-ops//.github/renovate/labels.json5",
|
||||
"github>ahinko/home-ops//.github/renovate/regexManagers.json5",
|
||||
"github>ahinko/home-ops//.github/renovate/semanticCommits.json5",
|
||||
"github>ahinko/home-ops//.github/renovate/versioning.json5",
|
||||
],
|
||||
dependencyDashboardTitle: "🤖 Renovate Dashboard",
|
||||
suppressNotifications: ["prEditedNotification", "prIgnoreNotification"],
|
||||
commitBodyTable: true,
|
||||
flux: {
|
||||
fileMatch: ["kubernetes/.+\\.yaml$"],
|
||||
},
|
||||
"helm-values": {
|
||||
fileMatch: ["kubernetes/.+\\.yaml$"],
|
||||
},
|
||||
kubernetes: {
|
||||
fileMatch: [
|
||||
"kubernetes/.+\\.yaml$",
|
||||
"backups/.+\\.yaml$",
|
||||
],
|
||||
},
|
||||
}
|
||||
20
.github/renovate/commitMessage.json5
vendored
20
.github/renovate/commitMessage.json5
vendored
|
|
@ -1,20 +0,0 @@
|
|||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"commitMessageTopic": "{{depName}}",
|
||||
"commitMessageExtra": "to {{newVersion}}",
|
||||
"commitMessageSuffix": "",
|
||||
"packageRules": [
|
||||
{
|
||||
"matchDatasources": ["helm"],
|
||||
"commitMessageTopic": "chart {{depName}}"
|
||||
},
|
||||
{
|
||||
"matchDatasources": ["oci"],
|
||||
"commitMessageTopic": "chart {{depName}}"
|
||||
},
|
||||
{
|
||||
"matchDatasources": ["docker"],
|
||||
"commitMessageTopic": "image {{depName}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
11
.github/renovate/disabledDatasources.json5
vendored
11
.github/renovate/disabledDatasources.json5
vendored
|
|
@ -1,11 +0,0 @@
|
|||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
packageRules: [
|
||||
{
|
||||
description: "Disable kubernetes-api",
|
||||
matchManagers: ["kubernetes"],
|
||||
matchDatasources: ["kubernetes-api"],
|
||||
enabled: false,
|
||||
},
|
||||
],
|
||||
}
|
||||
29
.github/renovate/labels.json5
vendored
29
.github/renovate/labels.json5
vendored
|
|
@ -1,29 +0,0 @@
|
|||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"packageRules": [
|
||||
{
|
||||
"matchUpdateTypes": ["major"],
|
||||
"labels": ["type/major"]
|
||||
},
|
||||
{
|
||||
"matchUpdateTypes": ["minor"],
|
||||
"labels": ["type/minor"]
|
||||
},
|
||||
{
|
||||
"matchUpdateTypes": ["patch"],
|
||||
"labels": ["type/patch"]
|
||||
},
|
||||
{
|
||||
"matchDatasources": ["docker"],
|
||||
"addLabels": ["renovate/container"]
|
||||
},
|
||||
{
|
||||
"matchDatasources": ["helm"],
|
||||
"addLabels": ["renovate/helm"]
|
||||
},
|
||||
{
|
||||
"matchDatasources": ["galaxy", "galaxy-collection"],
|
||||
"addLabels": ["renovate/ansible"]
|
||||
}
|
||||
]
|
||||
}
|
||||
130
.github/renovate/semanticCommits.json5
vendored
130
.github/renovate/semanticCommits.json5
vendored
|
|
@ -1,130 +0,0 @@
|
|||
{
|
||||
$schema: "https://docs.renovatebot.com/renovate-schema.json",
|
||||
packageRules: [
|
||||
{
|
||||
matchDatasources: ["docker"],
|
||||
matchUpdateTypes: ["major"],
|
||||
commitMessagePrefix: "feat(container)!: ",
|
||||
commitMessageTopic: "{{depName}}",
|
||||
commitMessageExtra: " ( {{currentVersion}} → {{newVersion}} )",
|
||||
},
|
||||
{
|
||||
matchDatasources: ["docker"],
|
||||
matchUpdateTypes: ["minor"],
|
||||
semanticCommitType: "feat",
|
||||
semanticCommitScope: "container",
|
||||
commitMessageTopic: "{{depName}}",
|
||||
commitMessageExtra: "( {{currentVersion}} → {{newVersion}} )",
|
||||
},
|
||||
{
|
||||
matchDatasources: ["docker"],
|
||||
matchUpdateTypes: ["patch"],
|
||||
semanticCommitType: "fix",
|
||||
semanticCommitScope: "container",
|
||||
commitMessageTopic: "{{depName}}",
|
||||
commitMessageExtra: "( {{currentVersion}} → {{newVersion}} )",
|
||||
},
|
||||
{
|
||||
matchDatasources: ["docker"],
|
||||
matchUpdateTypes: ["digest"],
|
||||
semanticCommitType: "chore",
|
||||
semanticCommitScope: "container",
|
||||
commitMessageTopic: "{{depName}}",
|
||||
commitMessageExtra: "( {{currentDigestShort}} → {{newDigestShort}} )",
|
||||
},
|
||||
{
|
||||
matchDatasources: ["helm"],
|
||||
matchUpdateTypes: ["major"],
|
||||
commitMessagePrefix: "feat(helm)!: ",
|
||||
commitMessageTopic: "{{depName}}",
|
||||
commitMessageExtra: "( {{currentVersion}} → {{newVersion}} )",
|
||||
},
|
||||
{
|
||||
matchDatasources: ["helm"],
|
||||
matchUpdateTypes: ["minor"],
|
||||
semanticCommitType: "feat",
|
||||
semanticCommitScope: "helm",
|
||||
commitMessageTopic: "{{depName}}",
|
||||
commitMessageExtra: "( {{currentVersion}} → {{newVersion}} )",
|
||||
},
|
||||
|
||||
{
|
||||
matchDatasources: ["helm"],
|
||||
matchUpdateTypes: ["patch"],
|
||||
semanticCommitType: "fix",
|
||||
semanticCommitScope: "helm",
|
||||
commitMessageTopic: "{{depName}}",
|
||||
commitMessageExtra: "( {{currentVersion}} → {{newVersion}} )",
|
||||
},
|
||||
{
|
||||
matchDatasources: ["galaxy", "galaxy-collection"],
|
||||
matchUpdateTypes: ["major"],
|
||||
commitMessagePrefix: "feat(ansible)!: ",
|
||||
commitMessageTopic: "{{depName}}",
|
||||
commitMessageExtra: "( {{currentVersion}} → {{newVersion}} )",
|
||||
},
|
||||
{
|
||||
matchDatasources: ["galaxy", "galaxy-collection"],
|
||||
matchUpdateTypes: ["minor"],
|
||||
semanticCommitType: "feat",
|
||||
semanticCommitScope: "ansible",
|
||||
commitMessageTopic: "{{depName}}",
|
||||
commitMessageExtra: "( {{currentVersion}} → {{newVersion}} )",
|
||||
},
|
||||
|
||||
{
|
||||
matchDatasources: ["galaxy", "galaxy-collection"],
|
||||
matchUpdateTypes: ["patch"],
|
||||
semanticCommitType: "fix",
|
||||
semanticCommitScope: "ansible",
|
||||
commitMessageTopic: "{{depName}}",
|
||||
commitMessageExtra: "( {{currentVersion}} → {{newVersion}} )",
|
||||
},
|
||||
{
|
||||
matchDatasources: ["github-releases", "github-tags"],
|
||||
matchUpdateTypes: ["major"],
|
||||
commitMessagePrefix: "feat(github-release)!: ",
|
||||
commitMessageTopic: "{{depName}}",
|
||||
commitMessageExtra: "( {{currentVersion}} → {{newVersion}} )",
|
||||
},
|
||||
{
|
||||
matchDatasources: ["github-releases", "github-tags"],
|
||||
matchUpdateTypes: ["minor"],
|
||||
semanticCommitType: "feat",
|
||||
semanticCommitScope: "github-release",
|
||||
commitMessageTopic: "{{depName}}",
|
||||
commitMessageExtra: "( {{currentVersion}} → {{newVersion}} )",
|
||||
},
|
||||
{
|
||||
matchDatasources: ["github-releases", "github-tags"],
|
||||
matchUpdateTypes: ["patch"],
|
||||
semanticCommitType: "fix",
|
||||
semanticCommitScope: "github-release",
|
||||
commitMessageTopic: "{{depName}}",
|
||||
commitMessageExtra: "( {{currentVersion}} → {{newVersion}} )",
|
||||
},
|
||||
{
|
||||
matchManagers: ["github-actions"],
|
||||
matchUpdateTypes: ["major"],
|
||||
commitMessagePrefix: "feat(github-action)!: ",
|
||||
commitMessageTopic: "{{depName}}",
|
||||
commitMessageExtra: "( {{currentVersion}} → {{newVersion}} )",
|
||||
},
|
||||
{
|
||||
matchManagers: ["github-actions"],
|
||||
matchUpdateTypes: ["minor"],
|
||||
semanticCommitType: "feat",
|
||||
semanticCommitScope: "github-action",
|
||||
commitMessageTopic: "{{depName}}",
|
||||
commitMessageExtra: "( {{currentVersion}} → {{newVersion}} )",
|
||||
},
|
||||
{
|
||||
matchManagers: ["github-actions"],
|
||||
matchUpdateTypes: ["patch"],
|
||||
semanticCommitType: "fix",
|
||||
semanticCommitScope: "github-action",
|
||||
commitMessageTopic: "{{depName}}",
|
||||
commitMessageExtra: "( {{currentVersion}} → {{newVersion}} )",
|
||||
},
|
||||
],
|
||||
}
|
||||
6
.github/workflows/schedule-renovate.yaml
vendored
6
.github/workflows/schedule-renovate.yaml
vendored
|
|
@ -18,8 +18,8 @@ on: # yamllint disable-line rule:truthy
|
|||
branches:
|
||||
- main
|
||||
paths:
|
||||
- ".github/renovate.json5"
|
||||
- ".github/renovate/**.json5"
|
||||
- ".renovaterc.json5"
|
||||
- ".renovate/**.json5"
|
||||
- ".github/workflows/schedule-renovate.yaml"
|
||||
|
||||
concurrency:
|
||||
|
|
@ -57,5 +57,5 @@ jobs:
|
|||
- name: Renovate
|
||||
uses: renovatebot/github-action@02f4fdeb479bbb229caa7ad82cb5e691c07e80b3 # v41.0.14
|
||||
with:
|
||||
configurationFile: .github/renovate.json5
|
||||
configurationFile: .renovaterc.json5
|
||||
token: "${{ steps.generate-token.outputs.token }}"
|
||||
|
|
|
|||
37
.renovate/labels.json5
Normal file
37
.renovate/labels.json5
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
$schema: "https://docs.renovatebot.com/renovate-schema.json",
|
||||
packageRules: [
|
||||
{
|
||||
matchUpdateTypes: ["major"],
|
||||
labels: ["type/major"],
|
||||
},
|
||||
{
|
||||
matchUpdateTypes: ["minor"],
|
||||
labels: ["type/minor"],
|
||||
},
|
||||
{
|
||||
matchUpdateTypes: ["patch"],
|
||||
labels: ["type/patch"],
|
||||
},
|
||||
{
|
||||
matchUpdateTypes: ["digest"],
|
||||
labels: ["type/digest"],
|
||||
},
|
||||
{
|
||||
matchDatasources: ["docker"],
|
||||
addLabels: ["renovate/container"],
|
||||
},
|
||||
{
|
||||
matchDatasources: ["helm"],
|
||||
addLabels: ["renovate/helm"],
|
||||
},
|
||||
{
|
||||
matchManagers: ["github-actions"],
|
||||
addLabels: ["renovate/github-action"],
|
||||
},
|
||||
{
|
||||
matchDatasources: ["github-releases"],
|
||||
addLabels: ["renovate/github-release"],
|
||||
},
|
||||
],
|
||||
}
|
||||
47
.renovate/semanticCommits.json5
Normal file
47
.renovate/semanticCommits.json5
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
$schema: "https://docs.renovatebot.com/renovate-schema.json",
|
||||
packageRules: [
|
||||
{
|
||||
matchUpdateTypes: ["major"],
|
||||
semanticCommitType: "feat",
|
||||
commitMessagePrefix: "{{semanticCommitType}}({{semanticCommitScope}})!:",
|
||||
commitMessageExtra: "( {{currentVersion}} → {{newVersion}} )",
|
||||
},
|
||||
{
|
||||
matchUpdateTypes: ["minor"],
|
||||
semanticCommitType: "feat",
|
||||
commitMessageExtra: "( {{currentVersion}} → {{newVersion}} )",
|
||||
},
|
||||
{
|
||||
matchUpdateTypes: ["patch"],
|
||||
semanticCommitType: "fix",
|
||||
commitMessageExtra: "( {{currentVersion}} → {{newVersion}} )",
|
||||
},
|
||||
{
|
||||
matchUpdateTypes: ["digest"],
|
||||
semanticCommitType: "chore",
|
||||
commitMessageExtra: "( {{currentDigestShort}} → {{newDigestShort}} )",
|
||||
},
|
||||
{
|
||||
matchDatasources: ["docker"],
|
||||
semanticCommitScope: "container",
|
||||
commitMessageTopic: "image {{depName}}",
|
||||
},
|
||||
{
|
||||
matchDatasources: ["helm"],
|
||||
semanticCommitScope: "helm",
|
||||
commitMessageTopic: "chart {{depName}}",
|
||||
},
|
||||
{
|
||||
matchManagers: ["github-actions"],
|
||||
semanticCommitType: "ci",
|
||||
semanticCommitScope: "github-action",
|
||||
commitMessageTopic: "action {{depName}}",
|
||||
},
|
||||
{
|
||||
matchDatasources: ["github-releases"],
|
||||
semanticCommitScope: "github-release",
|
||||
commitMessageTopic: "release {{depName}}",
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
@ -7,11 +7,5 @@
|
|||
versioning: "regex:^RELEASE\\.(?<major>\\d+)-(?<minor>\\d+)-(?<patch>\\d+)T.*Z(-(?<compatibility>.*))?$",
|
||||
matchPackageNames: ["quay.io/minio/minio"],
|
||||
},
|
||||
{
|
||||
description: ["Loose versioning for non-semver containers"],
|
||||
matchDatasources: ["docker"],
|
||||
matchPackagePatterns: ["plex"],
|
||||
versioning: "loose",
|
||||
},
|
||||
],
|
||||
}
|
||||
35
.renovaterc.json5
Normal file
35
.renovaterc.json5
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
$schema: "https://docs.renovatebot.com/renovate-schema.json",
|
||||
extends: [
|
||||
"config:recommended",
|
||||
"docker:enableMajor",
|
||||
"helpers:pinGitHubActionDigests",
|
||||
"github>ahinko/homelab//.renovate/allowedVersions.json5",
|
||||
"github>ahinko/homelab//.renovate/autoMerge.json5",
|
||||
"github>ahinko/homelab//.renovate/grafanadashboards.json5",
|
||||
"github>ahinko/homelab//.renovate/groups.json5",
|
||||
"github>ahinko/homelab//.renovate/labels.json5",
|
||||
"github>ahinko/homelab//.renovate/regexManagers.json5",
|
||||
"github>ahinko/homelab//.renovate/semanticCommits.json5",
|
||||
"github>ahinko/homelab//.renovate/versioning.json5",
|
||||
":automergeBranch",
|
||||
":disableRateLimiting",
|
||||
":dependencyDashboard",
|
||||
":semanticCommits",
|
||||
":timezone(Europe/Stockholm)",
|
||||
],
|
||||
dependencyDashboardTitle: "🤖 Renovate Dashboard",
|
||||
suppressNotifications: ["prEditedNotification", "prIgnoreNotification"],
|
||||
flux: {
|
||||
fileMatch: ["kubernetes/.+\\.yaml$"],
|
||||
},
|
||||
"helm-values": {
|
||||
fileMatch: ["kubernetes/.+\\.yaml$"],
|
||||
},
|
||||
kubernetes: {
|
||||
fileMatch: [
|
||||
"kubernetes/.+\\.yaml$",
|
||||
"backups/.+\\.yaml$",
|
||||
],
|
||||
},
|
||||
}
|
||||
Loading…
Reference in a new issue