forked from orange-cloudfoundry/bosh-release-action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrenovate.json5
42 lines (42 loc) · 1.67 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
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'config:base',
':disableRateLimiting',
],
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",
matchDepPatterns: ["*"],
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"]
}
],
regexManagers: [
{
fileMatch: ["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>.*)$"
}
]
}