|
1 | 1 | { |
2 | | - $schema: "https://docs.renovatebot.com/renovate-schema.json", |
| 2 | + $schema: 'https://docs.renovatebot.com/renovate-schema.json', |
3 | 3 | extends: [ |
4 | | - "config:recommended" |
| 4 | + 'config:recommended', |
5 | 5 | ], |
6 | 6 | configMigration: true, |
7 | 7 | prHourlyLimit: 1, |
8 | | - schedule: [ // utc timezone |
| 8 | + schedule: [ |
9 | 9 | 'after 6am on monday', |
10 | 10 | ], |
11 | 11 | enabledManagers: [ |
|
14 | 14 | 'github-actions', |
15 | 15 | ], |
16 | 16 | dockerfile: { |
17 | | - fileMatch: [ |
18 | | - 'Earthfile', |
| 17 | + managerFilePatterns: [ |
| 18 | + '/Earthfile/', |
19 | 19 | ], |
20 | 20 | }, |
21 | 21 | customManagers: [ |
22 | 22 | { |
23 | | - // Earthly Version in GH Actions |
24 | 23 | customType: 'regex', |
25 | | - fileMatch: [ |
26 | | - '.*?\\.yml', |
| 24 | + managerFilePatterns: [ |
| 25 | + '/.*?\\.yml/', |
27 | 26 | ], |
28 | 27 | matchStrings: [ |
29 | 28 | '- uses: earthly/actions/setup-earthly@.*?[\\s\\n]+.*?[\\s\\n]+with:[\\s\\n]*version: (?<currentValue>.*?)[\\s\\n/]+', |
|
32 | 31 | datasourceTemplate: 'github-releases', |
33 | 32 | }, |
34 | 33 | { |
35 | | - // ARG/LET in Earthfile that have a Renovate comment |
36 | 34 | customType: 'regex', |
37 | | - fileMatch: [ |
38 | | - 'Earthfile', |
| 35 | + managerFilePatterns: [ |
| 36 | + '/Earthfile/', |
39 | 37 | ], |
40 | 38 | matchStrings: [ |
41 | 39 | '\\s*#\\s*renovate:\\s*datasource=(?<datasource>.*?)\\s+depName=(?<depName>.*?)[\\s\\n]+(versioning=(?<versioning>.*?)\\s+)?(ARG|LET)\\s+.*?(_VERSION|_VER|version)=(?<currentValue>.*?)($|\\s|\\n)', |
42 | 40 | ], |
43 | 41 | }, |
44 | 42 | { |
45 | | - // Updating the Repology alpine version |
46 | 43 | customType: 'regex', |
47 | | - fileMatch: [ |
48 | | - 'Earthfile', |
| 44 | + managerFilePatterns: [ |
| 45 | + '/Earthfile/', |
49 | 46 | ], |
50 | 47 | matchStrings: [ |
51 | 48 | '# renovate: datasource=repology depName=alpine_(?<currentValue>\\d+_\\d+)', |
|
57 | 54 | autoReplaceStringTemplate: '# renovate: datasource=repology depName=alpine_{{{newMajor}}}_{{{newMinor}}}', |
58 | 55 | }, |
59 | 56 | { |
60 | | - // Updating the commit hash of earthly/earthly |
61 | 57 | customType: 'regex', |
62 | | - fileMatch: ['^\\.arg$'], |
| 58 | + managerFilePatterns: [ |
| 59 | + '/^\\.arg$/', |
| 60 | + ], |
63 | 61 | matchStrings: [ |
64 | 62 | 'EARTHLY_REPO_VERSION=(?<currentDigest>.*?)($|\\s|\\n)', |
65 | 63 | ], |
|
70 | 68 | }, |
71 | 69 | { |
72 | 70 | customType: 'regex', |
73 | | - fileMatch: [ |
74 | | - 'docs/dockerhub.md$', |
| 71 | + managerFilePatterns: [ |
| 72 | + '/docs/dockerhub.md$/', |
75 | 73 | ], |
76 | 74 | matchStrings: [ |
77 | 75 | '\\*\\s+\\`(?<currentValue>.+?)\\`\\n', |
|
84 | 82 | 'renovate', |
85 | 83 | ], |
86 | 84 | packageRules: [ |
87 | | - // set the group name for alpine dind dependencies |
88 | 85 | { |
89 | 86 | groupName: "{{{ replace 'os\\/(.*?)$' '$1' packageFileDir}}}-dind-image", |
90 | | - matchPackagePatterns: [ |
91 | | - 'alpine', |
92 | | - 'alpine.*?/docker', |
93 | | - 'docker/docker', |
94 | | - ], |
95 | 87 | matchManagers: [ |
96 | 88 | 'custom.regex', |
97 | 89 | ], |
|
103 | 95 | matchFileNames: [ |
104 | 96 | 'os/**/Earthfile', |
105 | 97 | ], |
| 98 | + matchPackageNames: [ |
| 99 | + '/alpine/', |
| 100 | + '/alpine.*?/docker/', |
| 101 | + '/docker/docker/', |
| 102 | + ], |
106 | 103 | }, |
107 | 104 | { |
108 | | - // let all package updates auto merge |
109 | | - matchPackagePatterns: [ '*' ], |
110 | 105 | automerge: true, |
| 106 | + matchPackageNames: [ |
| 107 | + '*', |
| 108 | + ], |
111 | 109 | }, |
112 | 110 | { |
113 | | - // rule to update earthly/dind:alpine-* images |
114 | 111 | 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+)$', |
119 | 118 | }, |
120 | 119 | { |
121 | | - // rule to update earthly/dind:ubuntu:20.04-* images |
122 | 120 | 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+)$', |
127 | 127 | }, |
128 | 128 | { |
129 | | - // rule to update earthly/dind:ubuntu:23.04-* images |
130 | 129 | 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+)$', |
135 | 136 | }, |
136 | 137 | { |
137 | | - // rule to update earthly/dind:ubuntu:24.04-* images |
138 | 138 | 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+)$', |
143 | 145 | }, |
144 | 146 | { |
145 | | - // create PRs for multiple docker versions in case we're more than one major version behind |
146 | 147 | matchPackageNames: [ |
147 | 148 | 'docker/docker', |
148 | 149 | ], |
|
0 commit comments