Skip to content

Commit 3bf3f0f

Browse files
Migrate config .github/renovate.json5
1 parent 37341ae commit 3bf3f0f

1 file changed

Lines changed: 48 additions & 47 deletions

File tree

.github/renovate.json5

Lines changed: 48 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
$schema: "https://docs.renovatebot.com/renovate-schema.json",
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
33
extends: [
4-
"config:recommended"
4+
'config:recommended',
55
],
66
configMigration: true,
77
prHourlyLimit: 1,
8-
schedule: [ // utc timezone
8+
schedule: [
99
'after 6am on monday',
1010
],
1111
enabledManagers: [
@@ -14,16 +14,15 @@
1414
'github-actions',
1515
],
1616
dockerfile: {
17-
fileMatch: [
18-
'Earthfile',
17+
managerFilePatterns: [
18+
'/Earthfile/',
1919
],
2020
},
2121
customManagers: [
2222
{
23-
// Earthly Version in GH Actions
2423
customType: 'regex',
25-
fileMatch: [
26-
'.*?\\.yml',
24+
managerFilePatterns: [
25+
'/.*?\\.yml/',
2726
],
2827
matchStrings: [
2928
'- uses: earthly/actions/setup-earthly@.*?[\\s\\n]+.*?[\\s\\n]+with:[\\s\\n]*version: (?<currentValue>.*?)[\\s\\n/]+',
@@ -32,20 +31,18 @@
3231
datasourceTemplate: 'github-releases',
3332
},
3433
{
35-
// ARG/LET in Earthfile that have a Renovate comment
3634
customType: 'regex',
37-
fileMatch: [
38-
'Earthfile',
35+
managerFilePatterns: [
36+
'/Earthfile/',
3937
],
4038
matchStrings: [
4139
'\\s*#\\s*renovate:\\s*datasource=(?<datasource>.*?)\\s+depName=(?<depName>.*?)[\\s\\n]+(versioning=(?<versioning>.*?)\\s+)?(ARG|LET)\\s+.*?(_VERSION|_VER|version)=(?<currentValue>.*?)($|\\s|\\n)',
4240
],
4341
},
4442
{
45-
// Updating the Repology alpine version
4643
customType: 'regex',
47-
fileMatch: [
48-
'Earthfile',
44+
managerFilePatterns: [
45+
'/Earthfile/',
4946
],
5047
matchStrings: [
5148
'# renovate: datasource=repology depName=alpine_(?<currentValue>\\d+_\\d+)',
@@ -57,9 +54,10 @@
5754
autoReplaceStringTemplate: '# renovate: datasource=repology depName=alpine_{{{newMajor}}}_{{{newMinor}}}',
5855
},
5956
{
60-
// Updating the commit hash of earthly/earthly
6157
customType: 'regex',
62-
fileMatch: ['^\\.arg$'],
58+
managerFilePatterns: [
59+
'/^\\.arg$/',
60+
],
6361
matchStrings: [
6462
'EARTHLY_REPO_VERSION=(?<currentDigest>.*?)($|\\s|\\n)',
6563
],
@@ -70,8 +68,8 @@
7068
},
7169
{
7270
customType: 'regex',
73-
fileMatch: [
74-
'docs/dockerhub.md$',
71+
managerFilePatterns: [
72+
'/docs/dockerhub.md$/',
7573
],
7674
matchStrings: [
7775
'\\*\\s+\\`(?<currentValue>.+?)\\`\\n',
@@ -84,14 +82,8 @@
8482
'renovate',
8583
],
8684
packageRules: [
87-
// set the group name for alpine dind dependencies
8885
{
8986
groupName: "{{{ replace 'os\\/(.*?)$' '$1' packageFileDir}}}-dind-image",
90-
matchPackagePatterns: [
91-
'alpine',
92-
'alpine.*?/docker',
93-
'docker/docker',
94-
],
9587
matchManagers: [
9688
'custom.regex',
9789
],
@@ -103,46 +95,55 @@
10395
matchFileNames: [
10496
'os/**/Earthfile',
10597
],
98+
matchPackageNames: [
99+
'/alpine/',
100+
'/alpine.*?/docker/',
101+
'/docker/docker/',
102+
],
106103
},
107104
{
108-
// let all package updates auto merge
109-
matchPackagePatterns: [ '*' ],
110105
automerge: true,
106+
matchPackageNames: [
107+
'*',
108+
],
111109
},
112110
{
113-
// rule to update earthly/dind:alpine-* images
114111
groupName: 'docs-dind-images',
115-
matchPackageNames: ['earthly/dind'],
116-
matchCurrentVersion: "/^alpine-.*/",
117-
allowedVersions: "/^alpine-.*/",
118-
versioning: "regex:^(?<compatibility>.*)-(?<major>\\d+\\.\\d+)-docker-(?<minor>\\d+)\\.(?<patch>\\d+)\\.(?<build>\\d+)-r(?<revision>\\d+)$",
112+
matchPackageNames: [
113+
'earthly/dind',
114+
],
115+
matchCurrentVersion: '/^alpine-.*/',
116+
allowedVersions: '/^alpine-.*/',
117+
versioning: 'regex:^(?<compatibility>.*)-(?<major>\\d+\\.\\d+)-docker-(?<minor>\\d+)\\.(?<patch>\\d+)\\.(?<build>\\d+)-r(?<revision>\\d+)$',
119118
},
120119
{
121-
// rule to update earthly/dind:ubuntu:20.04-* images
122120
groupName: 'docs-dind-images',
123-
matchPackageNames: ['earthly/dind'],
124-
matchCurrentVersion: "/^ubuntu-20\\.04-.*/",
125-
allowedVersions: "/^ubuntu-20\\.04-.*/",
126-
versioning: "regex:^(?<compatibility>.*)-(?<major>\\d+\\.\\d+)-docker-(?<minor>\\d+)\\.(?<patch>\\d+)\\.(?<build>\\d+)-(?<revision>\\d+)$",
121+
matchPackageNames: [
122+
'earthly/dind',
123+
],
124+
matchCurrentVersion: '/^ubuntu-20\\.04-.*/',
125+
allowedVersions: '/^ubuntu-20\\.04-.*/',
126+
versioning: 'regex:^(?<compatibility>.*)-(?<major>\\d+\\.\\d+)-docker-(?<minor>\\d+)\\.(?<patch>\\d+)\\.(?<build>\\d+)-(?<revision>\\d+)$',
127127
},
128128
{
129-
// rule to update earthly/dind:ubuntu:23.04-* images
130129
groupName: 'docs-dind-images',
131-
matchPackageNames: ['earthly/dind'],
132-
matchCurrentVersion: "/^ubuntu-23\\.04-.*/",
133-
allowedVersions: "/^ubuntu-23\\.04-.*/",
134-
versioning: "regex:^(?<compatibility>.*)-(?<major>\\d+\\.\\d+)-docker-(?<minor>\\d+)\\.(?<patch>\\d+)\\.(?<build>\\d+)-(?<revision>\\d+)$",
130+
matchPackageNames: [
131+
'earthly/dind',
132+
],
133+
matchCurrentVersion: '/^ubuntu-23\\.04-.*/',
134+
allowedVersions: '/^ubuntu-23\\.04-.*/',
135+
versioning: 'regex:^(?<compatibility>.*)-(?<major>\\d+\\.\\d+)-docker-(?<minor>\\d+)\\.(?<patch>\\d+)\\.(?<build>\\d+)-(?<revision>\\d+)$',
135136
},
136137
{
137-
// rule to update earthly/dind:ubuntu:24.04-* images
138138
groupName: 'docs-dind-images',
139-
matchPackageNames: ['earthly/dind'],
140-
matchCurrentVersion: "/^ubuntu-24\\.04-.*/",
141-
allowedVersions: "/^ubuntu-24\\.04-.*/",
142-
versioning: "regex:^(?<compatibility>.*)-(?<major>\\d+\\.\\d+)-docker-(?<minor>\\d+)\\.(?<patch>\\d+)\\.(?<build>\\d+)-(?<revision>\\d+)$",
139+
matchPackageNames: [
140+
'earthly/dind',
141+
],
142+
matchCurrentVersion: '/^ubuntu-24\\.04-.*/',
143+
allowedVersions: '/^ubuntu-24\\.04-.*/',
144+
versioning: 'regex:^(?<compatibility>.*)-(?<major>\\d+\\.\\d+)-docker-(?<minor>\\d+)\\.(?<patch>\\d+)\\.(?<build>\\d+)-(?<revision>\\d+)$',
143145
},
144146
{
145-
// create PRs for multiple docker versions in case we're more than one major version behind
146147
matchPackageNames: [
147148
'docker/docker',
148149
],

0 commit comments

Comments
 (0)