Repository navigation
Expand file tree
/
Copy pathrenovate.json
More file actions
119 lines (119 loc) · 5.67 KB
/
Copy pathrenovate.json
File metadata and controls
119 lines (119 loc) · 5.67 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
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
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended", "helpers:pinGitHubActionDigests"],
"enabledManagers": ["custom.regex", "github-actions", "npm"],
"customManagers": [
{
"customType": "regex",
"description": "Versions with a '# renovate:' comment on the line above",
"managerFilePatterns": ["scripts/conf/php-versions-base-config.yml", ".github/workflows/service_lint.yml", ".github/workflows/service_scan-images.yml"],
"matchStrings": [
"#\\s*renovate:\\s*datasource=(?<datasource>\\S+)\\s+depName=(?<depName>\\S+)(?:\\s+versioning=(?<versioning>\\S+))?\\s*\\n\\s*[A-Z0-9_]+:\\s*\"?(?<currentValue>[^\"\\s@]+)(?:@(?<currentDigest>sha256:[a-f0-9]{64}))?\"?"
]
},
{
"customType": "regex",
"description": "The docker-library/php commit the PHP base images are compiled from",
"managerFilePatterns": ["scripts/conf/php-versions-base-config.yml"],
"matchStrings": ["DOCKER_LIBRARY_PHP_REF: (?<currentDigest>[a-f0-9]{40})"],
"currentValueTemplate": "master",
"depNameTemplate": "docker-library/php",
"packageNameTemplate": "https://github.com/docker-library/php",
"datasourceTemplate": "git-refs"
},
{
"customType": "regex",
"description": "NGINX package for each Alpine version",
"managerFilePatterns": ["scripts/conf/php-versions-base-config.yml"],
"matchStrings": ["number: (?<packageName>3\\.\\d+)\\n\\s+nginx_version: (?<currentValue>\\S+)"],
"depNameTemplate": "nginx-alpine{{{packageName}}}",
"datasourceTemplate": "custom.nginx-alpine",
"versioningTemplate": "apk",
"extractVersionTemplate": "^nginx-(?<version>\\d+\\.\\d+\\.\\d+-r\\d+)\\.apk$"
},
{
"customType": "regex",
"description": "NGINX package for each Debian version",
"managerFilePatterns": ["scripts/conf/php-versions-base-config.yml"],
"matchStrings": ["version: (?<packageName>[a-z]+)\\n\\s+number: \\d+\\n\\s+nginx_version: (?<currentValue>\\S+)"],
"depNameTemplate": "nginx-{{{packageName}}}",
"datasourceTemplate": "custom.nginx-debian",
"versioningTemplate": "deb",
"extractVersionTemplate": "^nginx_(?<version>\\d+\\.\\d+\\.\\d+-\\d+~{{{packageName}}})_amd64\\.deb$"
},
{
"customType": "regex",
"description": "Apache package for each Debian version. Sury's pool listing URL-encodes '+' in its links, so this reads the suite's Packages index, where only the apache2 packages have a 2.x version.",
"managerFilePatterns": ["scripts/conf/php-versions-base-config.yml"],
"matchStrings": ["version: (?<packageName>[a-z]+)\\n\\s+number: \\d+\\n\\s+nginx_version: \\S+\\n\\s+apache_version: (?<currentValue>\\S+)"],
"depNameTemplate": "apache-{{{packageName}}}",
"datasourceTemplate": "custom.apache-debian",
"versioningTemplate": "deb",
"extractVersionTemplate": "^Version: (?<version>2\\.\\d+\\.\\d+-\\S+)$"
}
],
"customDatasources": {
"nginx-alpine": {
"defaultRegistryUrlTemplate": "https://nginx.org/packages/alpine/v{{packageName}}/main/x86_64/",
"format": "html"
},
"nginx-debian": {
"defaultRegistryUrlTemplate": "https://nginx.org/packages/debian/pool/nginx/n/nginx/",
"format": "html"
},
"apache-debian": {
"defaultRegistryUrlTemplate": "https://packages.sury.org/apache2/dists/{{packageName}}/main/binary-amd64/Packages",
"format": "plain"
}
},
"packageRules": [
{
"description": "Wait three days before proposing a new release, so a hijacked or broken one is usually caught first. git-refs, the nginx.org listings and Sury's Packages index have no release dates, so they are not covered.",
"matchDatasources": ["github-releases", "github-tags", "docker"],
"minimumReleaseAge": "3 days"
},
{
"description": "zizmor's releases are tagged v1.2.3 but its container image is tagged 1.2.3",
"matchDepNames": ["zizmorcore/zizmor"],
"extractVersion": "^v(?<version>.+)$"
},
{
"description": "Bump NGINX on every OS in one pull request",
"matchDatasources": ["custom.nginx-alpine", "custom.nginx-debian"],
"groupName": "nginx"
},
{
"description": "Bump Apache on every OS in one pull request",
"matchDatasources": ["custom.apache-debian"],
"groupName": "apache"
},
{
"description": "Merge the weekly docker-library/php bump once every check passes. Renovate merges it itself because GitHub's auto-merge would merge right away without required checks.",
"matchDepNames": ["docker-library/php"],
"schedule": ["before 6am on monday"],
"automerge": true,
"platformAutomerge": false
},
{
"description": "Go and watcher follow FrankenPHP, so its pull request reminds you to bump them together",
"matchDepNames": ["php/frankenphp"],
"prBodyNotes": ["Update `GOLANG_VERSION` in the same pull request to match `GO_VERSION` in [FrankenPHP's docker-bake.hcl](https://github.com/php/frankenphp/blob/v{{{newVersion}}}/docker-bake.hcl), and update `WATCHER_VERSION` to the [watcher release](https://github.com/e-dant/watcher/releases) that was current when this FrankenPHP version shipped."]
},
{
"description": "The docs site only tracks the project switcher bar",
"matchManagers": ["npm"],
"matchPackageNames": ["!@serversideup/project-switcher-bar"],
"enabled": false
},
{
"matchManagers": ["github-actions"],
"groupName": "github-actions",
"schedule": ["* 0-3 1 * *"]
},
{
"description": "Runner images (ubuntu-24.04) are upgraded by hand",
"matchDatasources": ["github-runners"],
"enabled": false
}
]
}