Skip to content

Commit 3ff9d15

Browse files
chore(config): migrate config .github/renovate.json5
1 parent 6405bfd commit 3ff9d15

1 file changed

Lines changed: 38 additions & 20 deletions

File tree

.github/renovate.json5

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,63 @@
11
{
2-
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3-
extends: ["config:best-practices"],
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
extends: [
4+
'config:best-practices',
5+
],
46
customDatasources: {
57
goreleaser: {
6-
defaultRegistryUrlTemplate: "https://goreleaser.com/static/releases.json",
8+
defaultRegistryUrlTemplate: 'https://goreleaser.com/static/releases.json',
79
transformTemplates: [
810
'{"releases":$.{"version":$.tag_name,"changelogUrl":$join(["https://github.com/goreleaser/goreleaser/releases/tag/",$.tag_name]),"sourceUrl":"https://github.com/goreleaser/goreleaser","homepage":"https://goreleaser.com/"},"sourceUrl":"https://github.com/goreleaser/goreleaser","homepage":"https://goreleaser.com/"}',
911
],
1012
},
1113
},
1214
customManagers: [
1315
{
14-
currentValueTemplate: "nonroot",
15-
customType: "regex",
16-
datasourceTemplate: "docker",
17-
depNameTemplate: "gcr.io/distroless/static",
18-
fileMatch: "^Dockerfile",
19-
matchStrings: ['ARG BASE_IMAGE_DIGEST="(?<currentDigest>.*)"'],
16+
currentValueTemplate: 'nonroot',
17+
customType: 'regex',
18+
datasourceTemplate: 'docker',
19+
depNameTemplate: 'gcr.io/distroless/static',
20+
managerFilePatterns: [
21+
'/^Dockerfile/',
22+
],
23+
matchStrings: [
24+
'ARG BASE_IMAGE_DIGEST="(?<currentDigest>.*)"',
25+
],
2026
},
2127
{
22-
customType: "regex",
23-
fileMatch: "(^|\\/)(?:workflow-templates|\\.github\\/(?:workflows|actions))\\/.+\\.ya?ml$",
28+
customType: 'regex',
29+
managerFilePatterns: [
30+
'/(^|\\/)(?:workflow-templates|\\.github\\/(?:workflows|actions))\\/.+\\.ya?ml$/',
31+
],
2432
matchStrings: [
25-
"version: (?<currentValue>.*?)\\s+# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?( packageName=(?<packageName>.*?))?\\s",
33+
'version: (?<currentValue>.*?)\\s+# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?( packageName=(?<packageName>.*?))?\\s',
2634
],
2735
},
2836
],
29-
labels: ["semver:patch", "kind:dependencies"],
37+
labels: [
38+
'semver:patch',
39+
'kind:dependencies',
40+
],
3041
packageRules: [
3142
{
32-
groupName: "gcr.io/distroless/static",
33-
matchDepNames: "gcr.io/distroless/static",
43+
groupName: 'gcr.io/distroless/static',
44+
matchDepNames: 'gcr.io/distroless/static',
3445
},
3546
{
36-
labels: ["semver:none", "kind:chore"],
37-
matchManagers: ["github-actions"],
47+
labels: [
48+
'semver:none',
49+
'kind:chore',
50+
],
51+
matchManagers: [
52+
'github-actions',
53+
],
3854
},
3955
{
40-
matchManagers: ["poetry"],
41-
rangeStrategy: "pin",
56+
matchManagers: [
57+
'poetry',
58+
],
59+
rangeStrategy: 'pin',
4260
},
4361
],
44-
semanticCommits: "auto",
62+
semanticCommits: 'auto',
4563
}

0 commit comments

Comments
 (0)