-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrenovate.json
71 lines (71 loc) · 2.42 KB
/
renovate.json
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
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"],
"timezone": "Asia/Tokyo",
"git-submodules": {
"enabled": true,
"versioning": "git",
"fileMatch": [
"(^|/)\\.gitmodules$"
]
},
"packageRules": [
{
"matchManagers": ["git-submodules"],
"enabled": false
},
{
"matchDepNames": [
"dependency_resolve"
],
"matchManagers": ["git-submodules"],
"enabled": true
},
{
"matchDepNames": ["distroless-php/dependency_resolve"],
"matchManagers": ["regex"],
"enabled": false
},
{
"matchDepNames": ["alpinelinux/aports"],
"matchManagers": ["regex"],
"versioning": "semver",
"allowedVersions": "/^v[0-9]+\\.[0-9]+\\.[0-9]+$/"
},
{
"matchDepNames": ["GNOME/libxml2"],
"matchManagers": ["regex"],
"versioning": "semver",
"allowedVersions": "/^v[0-9]+\\.[0-9]+\\.[0-9]+$/"
},
{
"matchDepNames": ["php/php-src"],
"matchManagers": ["regex"],
"versioning": "regex:^php-(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)$",
"allowedVersions": "/^php\\-[0-9]+\\.[0-9]+\\.[0-9]+$/"
},
{
"matchDepNames": ["unicode-org/icu"],
"matchManagers": ["regex"],
"versioning": "regex:^release\\-(?<major>\\d+)\\-(?<minor>\\d+)$",
"allowedVersions": "/^release\\-[0-9]+\\-[0-9]+$/"
}
],
"customManagers": [
{
"customType": "regex",
"fileMatch": ["^\\.gitmodules$"],
"matchStrings": [
"\\[submodule \"(?<depName>.+)\"\\][^\\[]*?\\n\\s*branch\\s*=\\s*(?<currentValue>.*)"
],
"datasourceTemplate": "github-tags",
"versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}"
}
],
"postUpgradeTasks": {
"commands": [
"(test \"{{{manager}}}\" = \"regex\" && git submodule update && git submodule init \"$(git config --file \".gitmodules\" submodule.{{{depName}}}.path)\" && git submodule update \"$(git config --file \".gitmodules\" submodule.{{{depName}}}.path)\" && (cd \"$(git config --file \".gitmodules\" submodule.{{{depName}}}.path)\" && git fetch --tags && git checkout \"{{{newVersion}}}\")) || true",
"(test \"{{{manager}}}\" = \"git-submodules\" && for SUBMODULE_PATH in $(grep \"path\" \".gitmodules\" | cut -d' ' -f3 | grep -v \"{{{depName}}}\"); do git submodule update \"${SUBMODULE_PATH}\"; done) || true"
]
}
}