Repository navigation
Expand file tree
/
Copy pathrenovate.json5
More file actions
49 lines (49 loc) · 1.78 KB
/
Copy pathrenovate.json5
File metadata and controls
49 lines (49 loc) · 1.78 KB
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
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'config:best-practices',
':disableRateLimiting',
],
baseBranchPatterns: [
// 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',
matchDepNames: [
'*',
],
addLabels: [
// See full list of fields available at https://docs.renovatebot.com/templates/#other-available-fields
'datasource/{{datasource}}',
'depName/{{depNameSanitized}}',
'manager/{{manager}}',
],
},
{
// Add checksums extraction tip to yq packaqe
matchDepNames: 'mikefarah/yq',
prBodyNotes: [
'To easily extract checksums: curl -sSL https://github.com/mikefarah/yq/releases/download/v{{version}}/checksums |grep "yq_linux_amd64 "|cut -d\' \' -f37',
],
},
],
customManagers: [
{
customType: 'regex',
managerFilePatterns: [
'/^Dockerfile$/',
],
matchStrings: [
// For dockerfile: https://regex101.com/r/iJfnnL/1
'datasource=(?<datasource>github-releases) depName=(?<depName>[\\w\\d\\//\\-\\_]+)\\nENV .+_VERSION[\\s*|=]??\\"?(?<currentValue>[\\w\\d\\/\\-\\.\\_]+)\\"?\\s*',
],
// datasourceTemplate: "{{datasource}}", // should not be required as we extract datasource
versioningTemplate: 'regex:(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?$',
extractVersionTemplate: '^v?(?<version>.*)$',
},
],
}