-
Notifications
You must be signed in to change notification settings - Fork 0
/
regex-managers.json
68 lines (68 loc) · 3.53 KB
/
regex-managers.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
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"regexManagers": [
{
"description": "Update Docker images from mirror in .gitlab-ci.yml",
"fileMatch": ["^\\.gitlab-ci\\.yml$"],
"matchStrings": [
"\\$\\{REGISTRY_MIRROR(?:_LIB)?\\}(?<depName>[^$]+?):(?<currentValue>[^$]+?)(?:\\s|$)"
],
"datasourceTemplate": "docker",
"versioningTemplate": "docker"
},
{
"description": "Update Docker images from mirror in Dockerfiles",
"fileMatch": ["Dockerfile$"],
"matchStrings": [
"FROM \\$\\{REGISTRY_MIRROR(?:_LIB)?\\}(?<depName>[^$]+?):(?<currentValue>[^$]+?)\\s"
],
"datasourceTemplate": "docker",
"versioningTemplate": "docker"
},
{
"description": "Update IMAGE_XYZ for versions.sh scripts",
"fileMatch": ["versions\\.sh$"],
"matchStrings": [
"\\n(?:export )?[A-Z0-9_]+=(?<depName>[^$]+?):(?<currentValue>[^$\\n]+)"
],
"datasourceTemplate": "docker",
"versioningTemplate": "docker"
},
{
"description": "Update XYZ_VERSION for versions.sh scripts",
"fileMatch": ["versions\\.sh$"],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>.+?)(?: (?:packageName|lookupName)=(?<packageName>.+?))?(?: extractVersion=(?<extractVersion>.+?))?(?: versioning=(?<versioning>.+?))?(?: registryUrl=(?<registryUrl>.+?))?\\s *(?:export )?[A-Z0-9_]+?_VERSION=(?<currentValue>.+?)\\s"
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}",
"extractVersionTemplate": "{{#if extractVersion}}{{{extractVersion}}}{{else}}^(?<version>.*){{/if}}"
},
{
"description": "Update _VERSION variables in Dockerfiles",
"fileMatch": ["(^|/|\\.)Dockerfile$", "(^|/)Dockerfile\\.[^/]*$"],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>.+?)(?: (?:packageName|lookupName)=(?<packageName>.+?))?(?: extractVersion=(?<extractVersion>.+?))?(?: versioning=(?<versioning>.+?))?(?: registryUrl=(?<registryUrl>.+?))?\\s(?:ENV|ARG) [A-Z0-9_]+?_VERSION=(?<currentValue>.+?)\\s"
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}",
"extractVersionTemplate": "{{#if extractVersion}}{{{extractVersion}}}{{else}}^(?<version>.*){{/if}}"
},
{
"description": "Update EXTENSION versions in SQL",
"fileMatch": ["\\.sql$"],
"matchStrings": [
"-- renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>.+?)(?: (?:packageName|lookupName)=(?<packageName>.+?))?(?: extractVersion=(?<extractVersion>.+?))?(?: versioning=(?<versioning>.+?))?(?: registryUrl=(?<registryUrl>.+?))?\\s+.*?'(?<currentValue>.+?)';"
],
"versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}",
"extractVersionTemplate": "{{#if extractVersion}}{{{extractVersion}}}{{else}}^(?<version>.*){{/if}}"
},
{
"description": "Update version variables in .yaml files",
"fileMatch": ["\\.ya?ml$"],
"matchStrings": [
": (?<currentValue>.+?)\\s+# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>.+?)(?: (?:packageName|lookupName)=(?<packageName>.+?))?(?: extractVersion=(?<extractVersion>.+?))?(?: versioning=(?<versioning>.+?))?(?: registryUrl=(?<registryUrl>.+?))?\\s"
],
"versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}",
"extractVersionTemplate": "{{#if extractVersion}}{{{extractVersion}}}{{else}}^(?<version>.*){{/if}}"
}
]
}