-
Notifications
You must be signed in to change notification settings - Fork 449
Expand file tree
/
Copy pathrenovate.json
More file actions
153 lines (150 loc) · 4.6 KB
/
Copy pathrenovate.json
File metadata and controls
153 lines (150 loc) · 4.6 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
"mergeConfidence:all-badges",
"abandonments:recommended",
":configMigration"
],
"lockFileMaintenance": {
"enabled": true
},
"rangeStrategy": "bump",
"separateMajorMinor": true,
"separateMultipleMajor": true,
"minimumReleaseAge": "14 days",
"prConcurrentLimit": 5,
"ignorePaths": [
"lib/dtext_rb/Dockerfile"
],
"customManagers": [
{
"description": "Track the Ruby version pinned in the Dockerfile so it can be grouped with .ruby-version",
"customType": "regex",
"managerFilePatterns": [
"/^Dockerfile$/"
],
"matchStrings": [
"ARG RUBY_VERSION=\"(?<currentValue>[^\"]+)\""
],
"depNameTemplate": "ruby",
"datasourceTemplate": "ruby-version"
},
{
"description": "Track the Node version pinned in the Dockerfile. Only LTS versions are suggested",
"customType": "regex",
"managerFilePatterns": [
"/^Dockerfile$/"
],
"matchStrings": [
"ARG NODE_VERSION=\"(?<currentValue>[^\"]+)\""
],
"depNameTemplate": "node",
"datasourceTemplate": "node-version",
"depTypeTemplate": "docker-dependencies"
},
{
"description": "Track any '# github: owner/repo' comment followed by an 'ARG FOO_VERSION=\"...\"' line in the Dockerfile, checking GitHub tags for new versions.",
"customType": "regex",
"managerFilePatterns": [
"/^Dockerfile$/"
],
"matchStrings": [
"#\\s*github:\\s*(?<packageName>[\\w.-]+/[\\w.-]+)\\s*\\n\\s*ARG (?<argName>[A-Z0-9]+)_VERSION=\"(?<currentValue>[^\"]+)\""
],
"depNameTemplate": "{{lowercase argName}}",
"datasourceTemplate": "github-tags",
"extractVersionTemplate": "^[a-zA-Z]?(?<version>\\d.*)$",
"versioningTemplate": "semver-coerced",
"depTypeTemplate": "docker-dependencies"
}
],
"packageRules": [
{
"description": "Force bundler to process gem updates from Gemfile.lock instead of Gemfile.",
"matchManagers": [
"bundler"
],
"rangeStrategy": "update-lockfile"
},
{
"description": "Only run lock file maintenance on package-lock.json. Our Gemfile does not specify max versions, so refreshing Gemfile.lock risks updating everything.",
"matchManagers": [
"bundler"
],
"matchUpdateTypes": [
"lockFileMaintenance"
],
"enabled": false
},
{
"description": "Give highest priority to npm/bundler updates",
"matchPackageNames": [
"npm",
"bundler"
],
"prPriority": 100
},
{
"description": "Group all non-major updates together",
"groupName": "{{manager}} non-major dependencies",
"groupSlug": "{{manager}}-minor-patch",
"matchManagers": [
"npm",
"bundler",
"github-actions"
],
"matchUpdateTypes": [
"minor",
"patch"
]
},
{
"description": "Keep the Ruby version in .ruby-version, the Dockerfile, and the Gemfile ruby in sync by updating them in the same PR/commit. This must come after the 'Force bundler to process gem updates from Gemfile.lock' rule.",
"groupName": "ruby version",
"matchDatasources": [
"ruby-version"
],
"rangeStrategy": "bump"
},
{
"description": "Better PR titles",
"commitMessageTopic": "{{manager}} dependency {{depName}}",
"commitMessageExtra": "{{#if displayFrom}}from {{{displayFrom}}} {{/if}}{{#if displayTo}}to {{{displayTo}}}{{/if}}",
"matchPackageNames": [
"*"
]
},
{
"description": "Use the file path instead of just 'dockerfile' in the title for Dockerfiles outside the repo root, since there are multiple Dockerfiles in this repo",
"matchManagers": [
"dockerfile"
],
"matchFileNames": [
"!Dockerfile"
],
"commitMessageTopic": "{{packageFile}} dependency {{depName}}"
},
{
"description": "Use 'ruby' title for main ruby version updates",
"matchDatasources": [
"ruby-version"
],
"commitMessageTopic": "{{depName}}"
},
{
"description": "Use short names instead of the full repo slur for the misc Dockerfile build tools",
"matchDepTypes": [
"docker-dependencies"
],
"commitMessageTopic": "dockerfile dependency {{depName}}"
},
{
"description": "Groups together shakapacker updates",
"matchPackageNames": [
"shakapacker"
],
"groupName": "shakapacker-bundler-stack"
}
]
}