-
Notifications
You must be signed in to change notification settings - Fork 1
/
renovate.json5
89 lines (89 loc) · 3.07 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:best-practices', //See https://docs.renovatebot.com/upgrade-best-practices/#use-the-configbest-practices-preset
':disableRateLimiting',
'github>orange-cloudfoundry/renovate-public-presets:boshreleases-default.json5'
],
enabledManagers: [
'github-actions',
'vendir',
'custom.regex',
],
ignorePaths: [
'packages/**',
'releases/**',
'manifests/**',
'jobs/**',
],
baseBranches: [
// don't run on renovate branches
'$default',
// 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: [
{
description: 'Add common labels',
addLabels: [
// See full list of fields available at https://docs.renovatebot.com/templates/#other-available-fields
'datasource/{{datasource}}',
'depName/{{depNameSanitized}}',
'manager/{{manager}}',
],
matchDepNames: [
'/*/',
],
},
{
description: 'Auto-merge patch releases, e.g. from 1.28.1 to 1.28.2',
matchPackageNames: [
'kubernetes/kubernetes',
'orange-cloudfoundry/create-bosh-release-action',
],
//see https://docs.renovatebot.com/key-concepts/automerge/#automerge-non-major-updates
matchUpdateTypes: [
'patch',
],
matchCurrentVersion: '!/-rc/',
automerge: true,
//see https://docs.renovatebot.com/key-concepts/automerge/#absence-of-tests
ignoreTests: true,
},
{
description: 'Kubectl: Get distinct branches for each minor, e.g. 1.28.x and 1.29.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, // https://github.com/renovatebot/renovate/pull/24538 is effective
},
{
description: 'Use to bump CLIs managed by jaxxstorm/action-install-gh-release',
matchFileNames: [
'.github/workflows/*.yml',
],
matchManagers: 'custom.regex',
addLabels: [
'cli-managed-by-jaxxstorm',
],
},
],
customManagers: [
{
description: 'Use to bump CLIs managed by jaxxstorm/action-install-gh-release',
customType: 'regex',
fileMatch: [
'.github/workflows/.+.yml$',
],
matchStrings: [
// https://regex101.com/r/Hajw59/2
' +uses: jaxxstorm\\/action-install-gh-release.*\\n.*\\n +repo: (?<depName>[a-z0-9\\.\\/\\-]*?)\\n +tag: (?<currentValue>[a-z0-9\\.\\/\\-\\+]*?) *\\n',
],
datasourceTemplate: 'github-releases',
},
],
}