Skip to content

Commit 173bd47

Browse files
Migrate config .github/renovate.json5
1 parent c6e3ee7 commit 173bd47

1 file changed

Lines changed: 39 additions & 38 deletions

File tree

.github/renovate.json5

Lines changed: 39 additions & 38 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: [
@@ -20,10 +20,9 @@
2020
},
2121
customManagers: [
2222
{
23-
// Earthly Version in GH Actions
2423
customType: 'regex',
2524
fileMatch: [
26-
'.*?\\.yml',
25+
'.*?\\.yml',
2726
],
2827
matchStrings: [
2928
'- uses: earthly/actions/setup-earthly@.*?[\\s\\n]+.*?[\\s\\n]+with:[\\s\\n]*version: (?<currentValue>.*?)[\\s\\n/]+',
@@ -32,7 +31,6 @@
3231
datasourceTemplate: 'github-releases',
3332
},
3433
{
35-
// ARG/LET in Earthfile that have a Renovate comment
3634
customType: 'regex',
3735
fileMatch: [
3836
'Earthfile',
@@ -42,7 +40,6 @@
4240
],
4341
},
4442
{
45-
// Updating the Repology alpine version
4643
customType: 'regex',
4744
fileMatch: [
4845
'Earthfile',
@@ -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+
fileMatch: [
59+
'^\\.arg$',
60+
],
6361
matchStrings: [
6462
'EARTHLY_REPO_VERSION=(?<currentDigest>.*?)($|\\s|\\n)',
6563
],
@@ -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)