-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathrenovate.json5
More file actions
60 lines (60 loc) · 2.31 KB
/
Copy pathrenovate.json5
File metadata and controls
60 lines (60 loc) · 2.31 KB
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
{
extends: [
'github>giantswarm/renovate-presets:default.json5',
// Only act during non-office hours: weeknights 22:00-05:00 plus all weekend.
// Resolves to ['* 0-4,22-23 * * 1-5', '* * * * 0,6'].
'schedule:nonOfficeHours',
],
// The schedule above is interpreted in UTC (Renovate's default), stated for clarity.
timezone: 'UTC',
// Stay completely idle outside the schedule: don't even rebase or automerge
// branches that already exist.
updateNotScheduled: false,
// No throttling inside the window. The Giant Swarm preset caps these at 10/10/2;
// these top-level values override it. 0 means "no limit".
prConcurrentLimit: 0,
branchConcurrentLimit: 0,
prHourlyLimit: 0,
// Keep dependency merges from cutting a release. The suffix ends up in the PR
// title, which is the whole commit message on main (squash merges here use
// PR_TITLE + BLANK body), where .github/workflows/on-merge-create-release.yml
// looks for it. `commitBody` would not work: squashing discards the branch commit.
commitMessageSuffix: '[do not release]',
packageRules: [
{
// Exception: the Dockerfile pins the hugo and nginx images that build and
// serve the site, and publishing only happens on the `v*` tags created by
// the release workflow. These updates must release, or the merged pins
// would not reach docs.giantswarm.io.
description: 'Let Dockerfile updates cut a release, since they change the published site',
matchFileNames: [
'Dockerfile',
],
commitMessageSuffix: '',
},
],
customManagers: [
{
customType: 'regex',
managerFilePatterns: [
'/.*\\.sh/',
],
matchStrings: [
'# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s[A-Z_]+=(?<currentValue>\\S+)',
],
versioningTemplate: '{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}',
},
{
customType: 'regex',
datasourceTemplate: 'github-tags',
managerFilePatterns: [
'/^scripts/update-crd-reference/config\\.yaml$/',
],
matchStrings: [
'short_name:\\s*(?<depName>\\S+)\\s+commit_reference:\\s*(?<currentValue>\\S+)',
],
packageNameTemplate: 'giantswarm/{{{depName}}}',
versioningTemplate: 'semver-coerced',
},
],
}