-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathrenovate.json
More file actions
60 lines (60 loc) · 2.14 KB
/
Copy pathrenovate.json
File metadata and controls
60 lines (60 loc) · 2.14 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
50
51
52
53
54
55
56
57
58
59
60
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":rebaseStalePrs",
":semanticCommits"
],
"labels": ["renovate"],
"rebaseWhen": "behind-base-branch",
"packageRules": [
{
"matchUpdateTypes": ["minor", "patch", "pin", "pinDigest", "digest"],
"automerge": true
},
{
"matchDatasources": ["custom.alpine", "custom.alpine-community"],
"extractVersion": "v?(?<version>\\S+)",
"versioning": "regex:^(?<major>\\d+)(?:\\.(?<minor>\\d+))?(?:\\.(?<patch>\\d+))(?:[._](?<build>.+?))?(-r(?<revision>\\d+))?$",
"followTag": "latest"
}
],
"customManagers": [
{
"customType": "regex",
"fileMatch": ["/Dockerfile$"],
"matchStringsStrategy": "any",
"matchStrings": [
"ARG (?:\\S+_)?VERSION=(?<currentValue>.*) # (?<datasource>.*?)/(?<depName>.*?)(?:\\&versioning=(?<versioning>.*?))?\\s"
],
"extractVersionTemplate": "^v?(?<version>.*)$"
},
{
"customType": "regex",
"fileMatch": ["^renovate.json"],
"matchStringsStrategy": "any",
"matchStrings": [
"\"defaultRegistryUrlTemplate\"\\s*:\\s*\"https://pkgs.alpinelinux.org/package/(?<currentValue>.*?)/.+?\""
],
"extractVersionTemplate": "^v?(?<version>.*)$",
"depNameTemplate": "alpine",
"datasourceTemplate": "docker"
}
],
"customDatasources": {
"alpine": {
"defaultRegistryUrlTemplate": "https://pkgs.alpinelinux.org/package/3.23/main/x86_64/{{packageName}}",
"format": "plain",
"transformTemplates": [
"( $version := releases[version ~> /^\\s*\\d+(\\.\\d+)*(_[a-zA-Z]+\\d+)?-r\\d+\\s*$/].version; { 'releases': [{ 'version': $version }], 'tags': { 'latest': $version } })"
]
},
"alpine-community": {
"defaultRegistryUrlTemplate": "https://pkgs.alpinelinux.org/package/3.23/community/x86_64/{{packageName}}",
"format": "plain",
"transformTemplates": [
"( $version := releases[version ~> /^\\s*\\d+(\\.\\d+)*(_[a-zA-Z]+\\d+)?-r\\d+\\s*$/].version; { 'releases': [{ 'version': $version }], 'tags': { 'latest': $version } })"
]
}
}
}