This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
forked from poblin-orange/k3s-boshrelease
-
Notifications
You must be signed in to change notification settings - Fork 5
/
renovate.json5
89 lines (89 loc) · 3.37 KB
/
renovate.json5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'config:base',
':disableRateLimiting',
],
ignorePaths: [
'packages/**',
'releases/**',
'manifests/**',
'jobs/**',
],
baseBranches: [
// don't run on renovate branches
"$default",
"/^release-.*/", //regexp test syntax
"/^upstream-release-1\..*/"
// See https://docs.renovatebot.com/configuration-options/#basebranches
// baseBranches supports Regular Expressions that must begin and end with /
], //See also possible support for multiple base branches, one per K8S minor version https://docs.renovatebot.com/configuration-options/#basebranches
packageRules: [
{
matchManagers: [
'regex',
],
matchPaths: [
'vendir.yml',
],
addLabels: [
'bump-from/vendir',
],
},
{
description: 'Get distinct branches for each minor, e.g. 1.22.x and 1.23.x. See https://docs.renovatebot.com/presets-default/#separatepatchreleases and https://docs.renovatebot.com/faq/#separate-patch-releases-from-minor-releases',
matchPackageNames: [
'k3s-io/k3s',
],
separateMinorPatch: true,
versioning: "semver",
//separateMultipleMinor: true, // Pending merge of https://github.com/renovatebot/renovate/pull/24538 to be effective
},
{
description: "Add common labels",
matchDepPatterns: ["*"],
addLabels: [
// See full list of fields available at https://docs.renovatebot.com/templates/#other-available-fields
"datasource/{{datasource}}",
"depName/{{depNameSanitized}}",
"manager/{{manager}}",
"hasReleaseNotes/{{hasReleaseNotes}}",
"target/{{baseBranch}}", // To easily filter PR on base branch, like all PR related to k3s 1.25
]
},
{
description: 'Kubectl: Get distinct branches for each minor, e.g. 1.22.x and 1.23.x. See https://docs.renovatebot.com/presets-default/#separatepatchreleases and https://docs.renovatebot.com/faq/#separate-patch-releases-from-minor-releases',
matchPackageNames: [
'kubernetes/kubernetes',
],
separateMinorPatch: true,
addLabels: [
"depName/kubernetes-kubectl", //override common labels for kubectl, as we have to scan kubernetes releases
]
//separateMultipleMinor: true, // Pending merge of https://github.com/renovatebot/renovate/pull/24538 to be effective
}
],
regexManagers: [
{
description: 'https://regex101.com/r/ms9hZL/1 for matchstring and https://regex101.com/r/NVqoci/1 for version',
fileMatch: [
'vendir.yml$',
],
matchStrings: [
' +githubRelease:\\n +slug: (?<depName>[a-z0-9\\.\\/\\-]*?)\\n +tag: (?<currentValue>[a-z0-9\\.\\/\\-\\+]*?) *\\n',
],
datasourceTemplate: 'github-releases',
versioningTemplate: 'regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)(-(?<build>[a-z0-9]+))?(\\+(?<compatibility>[a-z0-9]+[a-z])(?<revision>[0-9]+))?$', // https://regex101.com/r/C1dICM/1
},
{
fileMatch: [
'vendir.yml$',
],
matchStrings: [
' +git:\\n +url: https:\\/\\/github\\.com\\/(?<depName>[a-z0-9\\.\\/\\-:]*?)\\n +ref: (?<currentValue>[a-z0-9\\.\\/\\-\\+]*?) *\\n',
],
datasourceTemplate: 'github-tags',
versioningTemplate: 'regex:v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?$',
},
],
}