-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrenovate.json
150 lines (150 loc) · 4.93 KB
/
renovate.json
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
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"dependencyDashboard": true,
"pre-commit": {
"enabled": true
},
"labels": ["renovate"],
"rangeStrategy": "pin",
"rebaseWhen": "behind-base-branch",
"semanticCommits": "enabled",
"platformAutomerge": true,
"postUpdateOptions": ["gomodTidy", "gomodUpdateImportPaths"],
"regexManagers": [
{
"description": "Upgrade go version",
"fileMatch": ["(^workflow-templates|\\.github/workflows)/[^/]+\\.ya?ml$"],
"matchStrings": ["go-version:\\s(?<currentValue>.*)"],
"datasourceTemplate": "golang-version",
"depNameTemplate": "go"
},
{
"description": "Upgrade arbitrary go module versions in Makefiles",
"fileMatch": ["^Makefile"],
"matchStrings": [
"# renovate:\\sdatasource=(?<datasource>.*?)\\sdepName=(?<depName>.*?)\\s.*@(?<currentValue>.*)"
]
},
{
"description": "Upgrade go minor for golangci-lint",
"fileMatch": ["^\\.golangci\\.yml"],
"matchStrings": ["lang-version: \"(?<currentValue>.*)\""],
"datasourceTemplate": "github-tags",
"depNameTemplate": "golang/go",
"versioningTemplate": "docker"
},
{
"description": "Upgrade backend version in ldflags",
"fileMatch": ["^\\.goreleaser.yaml", "Makefile"],
"matchStrings": [
"-X github.com/envelope-zero/backend/pkg/router\\.version=(?<currentValue>\\d+\\.\\d+\\.\\d+)"
],
"datasourceTemplate": "github-releases",
"depNameTemplate": "envelope-zero/backend"
},
{
"description": "Update frontend extract command in Makefile",
"fileMatch": ["Makefile"],
"matchStrings": ["ghcr.io/envelope-zero/frontend:(?<currentValue>.*)"],
"depNameTemplate": "ghcr.io/envelope-zero/frontend",
"datasourceTemplate": "docker"
},
{
"description": "Upgrade arbitrary dependencies in GitHub action workflows declared with 'export *_VERSION'",
"fileMatch": ["(^workflow-templates|\\.github/workflows)/[^/]+\\.ya?ml$"],
"matchStrings": [
"# renovate: datasource=(?<datasource>.*?)\\sdepName=(?<depName>.*?)\\s+export .*?_VERSION=\"(?<currentValue>.*)\""
]
}
],
"packageRules": [
{
"description": "Pin GitHub action digests",
"matchDepTypes": ["action"],
"rangeStrategy": "pin",
"pinDigests": true
},
{
"description": "Remove v from backend version as it is used in the API version",
"matchPackageNames": ["envelope-zero/backend"],
"matchDatasources": ["github-releases"],
"extractVersion": "^v(?<version>.*)"
},
{
"description": "Parse go version for golangci-lint from GitHub tags",
"extractVersion": "^go(?<version>\\d+\\.\\d+)",
"matchPackageNames": ["golang/go"],
"groupName": "go"
},
{
"description": "Automatically merge minor updates",
"matchManagers": [
"github-actions",
"gomod",
"dockerfile",
"pre-commit",
"regex"
],
"matchUpdateTypes": ["minor", "patch", "digest"],
"automerge": true
},
{
"description": "Group go upgrades",
"matchPackageNames": ["go", "golang"],
"groupName": "go"
},
{
"description": "Group backend upgrades for ldflags and go.mod",
"matchPackagePatterns": [
"envelope-zero/backend",
"github.com/envelope-zero/backend/v.*"
],
"groupName": "backend"
},
{
"description": "Bump patch version for backend patch updates",
"matchUpdateTypes": ["patch"],
"matchPackagePatterns": [
"envelope-zero/backend",
"github.com/envelope-zero/backend/v.*"
],
"commitMessagePrefix": "fix(backend):"
},
{
"description": "Bump minor version for backend minor updates",
"matchUpdateTypes": ["minor"],
"matchPackagePatterns": [
"envelope-zero/backend",
"github.com/envelope-zero/backend/v.*"
],
"commitMessagePrefix": "feat(backend):"
},
{
"description": "Bump major version for backend major updates",
"matchUpdateTypes": ["major"],
"matchPackagePatterns": [
"envelope-zero/backend",
"github.com/envelope-zero/backend/v.*"
],
"commitMessagePrefix": "feat(backend)!:"
},
{
"description": "Bump patch version for frontend patch updates",
"matchUpdateTypes": ["patch"],
"matchPackageNames": ["ghcr.io/envelope-zero/frontend"],
"commitMessagePrefix": "fix(frontend):"
},
{
"description": "Bump minor version for frontend minor updates",
"matchUpdateTypes": ["minor"],
"matchPackageNames": ["ghcr.io/envelope-zero/frontend"],
"commitMessagePrefix": "feat(frontend):"
},
{
"description": "Bump major version for frontend major updates",
"matchUpdateTypes": ["major"],
"matchPackageNames": ["ghcr.io/envelope-zero/frontend"],
"commitMessagePrefix": "feat(frontend)!:"
}
]
}