-
Notifications
You must be signed in to change notification settings - Fork 2
/
renovate.js
117 lines (116 loc) · 3.34 KB
/
renovate.js
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
/*eslint no-undef: "error"*/
/*eslint-env node*/
module.exports = {
// $schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: ["config:base"],
onboarding: false,
requireConfig: false,
gitAuthor: "Renovate Bot <[email protected]>",
pinDigests: true,
prHourlyLimit: 15,
rebaseWhen: "behind-base-branch",
enabledManagers: [
"github-actions",
"bazel",
"gomod",
"regex",
"npm",
"pip_requirements",
],
platform: "github",
reviewersFromCodeOwners: true,
repositories: ["whilp/world"],
"github-actions": {
fileMatch: ["^\\.github/workflows/[^/]+\\.ya?ml$"],
pinDigests: true,
labels: ["dependencies", "github"],
},
bazel: {
labels: ["dependencies", "bazel"],
ignoreUnstable: false,
},
gomod: {
labels: ["dependencies", "go"],
},
npm: {
labels: ["dependencies", "javascript"],
},
pip_requirements: {
labels: ["dependencies", "python"],
fileMatch: ["requirements.in", "requirements.txt"],
},
allowedPostUpgradeCommands: ["^./tools/bazel run"],
// postUpgradeTasks: {
// commands: ["./tools/bazel run --config=ci versions"],
// fileFilters: ["versions.bzl"],
// },
regexManagers: [
{
fileMatch: ["^\\.github/workflows/[^/]+\\.ya?ml$"],
labels: ["dependencies", "docker"],
matchStrings: [
"docker://(?<depName>.*?):(?<currentValue>.*?)@(?<currentDigest>sha256:[a-f0-9]+)",
],
datasourceTemplate: "docker",
},
{
// https://github.com/renovatebot/renovate/issues/5733
fileMatch: ["^\\.github/workflows/[^/]+\\.ya?ml$"],
labels: ["dependencies", "github"],
matchStrings: ["uses: (?<depName>.*?)@(?<currentValue>.*?)\\s"],
datasourceTemplate: "github-tags",
},
{
fileMatch: "versions.bzl",
labels: ["dependencies", "bazel"],
matchStrings: [
'datasource = "(?<datasource>.*?)",\n.*name = "(?<depName>.*?)",\n.*version = "(?<currentValue>.*?)"',
],
},
{
fileMatch: ".bazelversion",
labels: ["dependencies", "bazel"],
matchStrings: ["^(?<currentValue>[0-9.]+)\\s"],
datasourceTemplate: "github-releases",
depNameTemplate: "bazelbuild/bazel",
},
],
packageRules: [
{
depTypeList: ["container_pull"],
packagePatterns: ["ubuntu"],
allowedVersions: "<=18.04",
versioning: "regex:^(?<compatibility>[a-z]+?)-(?<minor>\\d+)?$",
},
{
updateTypes: ["minor", "patch", "pin", "digest"],
automerge: true,
},
{
updateTypes: ["pin", "digest"],
automerge: true,
schedule: ["on friday"],
},
{
packageNames: ["build_bazel_rules_nodejs"],
packagePatterns: ["^@bazel/"],
groupName: "rules_nodejs monorepo",
},
{
// Keep in sync with rules_nodejs
// https://github.com/bazelbuild/rules_nodejs/blob/d660ca109fcf86fe0dbfb9908faaefb0e30c25a0/internal/node/node_repositories.bzl#L108-L112
packagePatterns: ["nodejs/node"],
allowedVersions: "<=12.13.0",
},
{
// Keep in sync with rules_nodejs
// https://github.com/bazelbuild/rules_nodejs/blob/d660ca109fcf86fe0dbfb9908faaefb0e30c25a0/internal/node/node_repositories.bzl#L204
packagePatterns: ["yarnpkg/yarn"],
allowedVersions: "<=1.22.4",
},
{
packagePatterns: ["buildifier", "buildozer"],
versioning: "node",
},
],
};