Skip to content

Commit

Permalink
fix(renovate): rewrite renovate config
Browse files Browse the repository at this point in the history
  • Loading branch information
willianpaixao committed Nov 29, 2024
1 parent 3f4de46 commit b811464
Showing 1 changed file with 19 additions and 357 deletions.
376 changes: 19 additions & 357 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,380 +1,42 @@
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'config:recommended',
'docker:enableMajor',
'docker:pinDigests',
'helpers:pinGitHubActionDigests',
':automergeBranch',
':automergeDigest',
':dependencyDashboard',
':disableRateLimiting',
':semanticCommits',
'config:recommended',
'docker:enableMajor',
'docker:pinDigests',
'helpers:pinGitHubActionDigests',
],
assignees: ['willianpaixao'],
reviewers: ['willianpaixao'],
assignAutomerge: true,
dependencyDashboard: true,
dependencyDashboardTitle: 'Renovate Dashboard 🤖',
ignorePaths: ['**/*.sops.*', '**/docs/**'],
suppressNotifications: [
'prEditedNotification',
'prIgnoreNotification',
],
rebaseWhen: 'conflicted',
schedule: [
'on saturday',
],
flux: {
fileMatch: [
'(^|/)kubernetes/.+\\.ya?ml(\\.j2)?$',
],
schedule: ['on saturday',],
"flux": {
"fileMatch": [
"(^|/)kubernetes/.+\\.ya?ml$"
]
},
'helm-values': {
fileMatch: [
'(^|/)kubernetes/.+\\.ya?ml(\\.j2)?$',
"helm-values": {
"fileMatch": [
"(^|/)kubernetes/.+\\.ya?ml$"
],
"pinDigests": false
},
kubernetes: {
fileMatch: [
'(^|/)kubernetes/.+\\.ya?ml(\\.j2)?$',
],
},
kustomize: {
fileMatch: [
'(^|/)kustomization\\.ya?ml(\\.j2)?$',
],
},
pip_requirements: {
fileMatch: [
'(^|/)[\\w-]*requirements(-\\w+)?\\.(txt|pip)(\\.j2)?$',
],
},
'ansible-galaxy': {
fileMatch: [
'(^|/)(galaxy|requirements)(\\.ansible)?\\.ya?ml(\\.j2)?$',
],
},
commitMessageTopic: '{{depName}}',
commitMessageExtra: 'to {{newVersion}}',
commitMessageSuffix: '',
packageRules: [
{
description: [
'Auto merge Github Actions',
],
matchManagers: [
'github-actions',
],
automerge: true,
automergeType: 'branch',
ignoreTests: true,
matchUpdateTypes: [
'minor',
'patch',
],
},
{
description: [
'Flux Group',
],
groupName: 'Flux',
matchDatasources: [
'docker',
'github-tags',
],
versioning: 'semver',
group: {
commitMessageTopic: '{{{groupName}}} group',
},
separateMinorPatch: true,
matchPackageNames: [
'/flux/',
],
},
{
description: [
'System Upgrade Controller Group',
],
groupName: 'System Upgrade Controller',
matchDatasources: [
'docker',
'github-releases',
],
group: {
commitMessageTopic: '{{{groupName}}} group',
},
separateMinorPatch: true,
matchPackageNames: [
'/system-upgrade-controller/',
],
},
{
description: [
'Use custom versioning for k3s',
],
matchDatasources: [
'github-releases',
],
versioning: 'regex:^v(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)(?<compatibility>\\+k.s)\\.?(?<build>\\d+)$',
matchPackageNames: [
'/k3s/',
],
},
{
matchDatasources: [
'helm',
],
commitMessageTopic: 'chart {{depName}}',
},
{
matchDatasources: [
'docker',
],
commitMessageTopic: 'image {{depName}}',
},
{
matchDatasources: [
'docker',
],
matchUpdateTypes: [
'major',
],
commitMessagePrefix: 'feat(container)!: ',
},
{
matchDatasources: [
'docker',
],
matchUpdateTypes: [
'minor',
],
semanticCommitType: 'feat',
semanticCommitScope: 'container',
},
{
matchDatasources: [
'docker',
],
matchUpdateTypes: [
'patch',
],
semanticCommitType: 'fix',
semanticCommitScope: 'container',
},
{
matchDatasources: [
'docker',
],
matchUpdateTypes: [
'digest',
],
semanticCommitType: 'chore',
semanticCommitScope: 'container',
},
{
matchDatasources: [
'helm',
],
matchUpdateTypes: [
'major',
],
commitMessagePrefix: 'feat(helm)!: ',
},
{
matchDatasources: [
'helm',
],
matchUpdateTypes: [
'minor',
],
semanticCommitType: 'feat',
semanticCommitScope: 'helm',
},
{
matchDatasources: [
'helm',
],
matchUpdateTypes: [
'patch',
],
semanticCommitType: 'fix',
semanticCommitScope: 'helm',
},
{
matchDatasources: [
'galaxy',
'galaxy-collection',
],
matchUpdateTypes: [
'major',
],
commitMessagePrefix: 'feat(ansible)!: ',
},
{
matchDatasources: [
'galaxy',
'galaxy-collection',
],
matchUpdateTypes: [
'minor',
],
semanticCommitType: 'feat',
semanticCommitScope: 'ansible',
},
{
matchDatasources: [
'galaxy',
'galaxy-collection',
],
matchUpdateTypes: [
'patch',
],
semanticCommitType: 'fix',
semanticCommitScope: 'ansible',
},
{
matchDatasources: [
'github-releases',
'github-tags',
],
matchUpdateTypes: [
'major',
],
commitMessagePrefix: 'feat(github-release)!: ',
},
{
matchDatasources: [
'github-releases',
'github-tags',
],
matchUpdateTypes: [
'minor',
],
semanticCommitType: 'feat',
semanticCommitScope: 'github-release',
},
{
matchDatasources: [
'github-releases',
'github-tags',
],
matchUpdateTypes: [
'patch',
],
semanticCommitType: 'fix',
semanticCommitScope: 'github-release',
},
{
matchManagers: [
'github-actions',
],
matchUpdateTypes: [
'major',
],
commitMessagePrefix: 'feat(github-action)!: ',
},
{
matchManagers: [
'github-actions',
],
matchUpdateTypes: [
'minor',
],
semanticCommitType: 'feat',
semanticCommitScope: 'github-action',
},
{
matchManagers: [
'github-actions',
],
matchUpdateTypes: [
'patch',
],
semanticCommitType: 'fix',
semanticCommitScope: 'github-action',
},
{
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',
],
},
{
matchDatasources: [
'github-releases',
'github-tags',
],
addLabels: [
'renovate/github-release',
],
},
{
matchManagers: [
'github-actions',
],
addLabels: [
'renovate/github-action',
],
},
],
customManagers: [
{
customType: 'regex',
description: [
'Process custom dependencies',
],
fileMatch: [
'(^|/)ansible/.+\\.ya?ml(\\.j2)?$',
'(^|/)kubernetes/.+\\.ya?ml(\\.j2)?$',
],
matchStrings: [
'(?m:# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( repository=(?<registryUrl>\\S+))?\\n.+?: "?(?<currentValue>\\S+?)"?$)',
'(?m:# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)\\n.+?/(?<currentValue>(v|\\d)[^/]+)\\S+$)',
],
datasourceTemplate: '{{#if datasource}}{{{datasource}}}{{else}}github-releases{{/if}}',
},
],
"kubernetes": {
"fileMatch": [
"(^|/)kubernetes/.+\\.ya?ml$"
]
}
}

0 comments on commit b811464

Please sign in to comment.