-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-alpine.json5
More file actions
61 lines (61 loc) · 2.58 KB
/
docker-alpine.json5
File metadata and controls
61 lines (61 loc) · 2.58 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
// Ensure to get dependency updates for alpine variants of images.
// See: https://aarongoldenthal.com/posts/managing-alpine-linux-based-container-images-with-renovate/
// Source: https://gitlab.com/gitlab-ci-utils/renovate-config/-/blob/main/presets/docker-alpine.json
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customManagers": [
{
"description": "Manage Alpine OS versions in container image tags",
"customType": "regex",
// https://docs.renovatebot.com/modules/manager/dockerfile/#default-config
"managerFilePatterns": [
"(^|/|\\.)([Dd]ocker|[Cc]ontainer)file$",
"(^|/)([Dd]ocker|[Cc]ontainer)file[^/]*$",
],
"matchStrings": [
"FROM\\s+(?<depName>[\\S]+?):(?<currentValue>[^@\\s]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?"
],
"versioningTemplate": "regex:^(?<compatibility>[\\S]*\\d+\\.\\d+(?:\\.\\d+)?(?:[\\S]*)?-alpine-?)(?<major>\\d+)\\.(?<minor>\\d+)(?:\\.(?<patch>\\d+))?$",
"datasourceTemplate": "docker",
},
{
"description": "Manage Alpine OS versions in container image tags",
"customType": "regex",
"managerFilePatterns": [
// gitlabci: https://docs.renovatebot.com/modules/manager/gitlabci/#default-config
"\\.gitlab-ci\\.ya?ml$",
// droneci: https://docs.drone.io/pipeline/overview/
"\\.drone\\/yml$",
// docker-compose: https://docs.renovatebot.com/modules/manager/docker-compose/#default-config
"(^|/)(?:docker-)?compose[^/]*\\.ya?ml$",
// docker-compose: support compose templates in copier templates
"(^|/)(?:docker-)?compose[^/]*\\.ya?ml\\.jinja$",
],
"matchStrings": [
"(?:image:\\s+name:\\s*|image:\\s*|services:\\s+-\\s+)(?<depName>[\\S]+?):(?<currentValue>[^@\\s]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?"
],
"versioningTemplate": "regex:^(?<compatibility>[\\S]*\\d+\\.\\d+(?:\\.\\d+)?(?:[\\S]*)?-alpine-?)(?<major>\\d+)\\.(?<minor>\\d+)(?:\\.(?<patch>\\d+))?$",
"datasourceTemplate": "docker",
},
],
// Ensure regular node updates still follow the node versioning (LTS-awareness).
// See: https://github.com/renovatebot/renovate/discussions/29501
// The preset "workarounds:nodeDockerVersioning" needs to be ignored in the config.
"packageRules": [
{
"matchDatasources": [
"docker"
],
"matchDepNames": [
"node"
],
"matchManagers": [
"dockerfile",
"gitlabci",
"droneci"
],
"versionCompatibility": "^(?<version>[^-]+)(?<compatibility>-.*)?$",
"versioning": "node"
},
],
}