@@ -22,6 +22,7 @@ Configuration-wise, it works like this:
...
@@ -22,6 +22,7 @@ Configuration-wise, it works like this:
- You can optionally have a `lookupName` capture group or a `lookupNameTemplate` if it differs from `depName`
- You can optionally have a `lookupName` capture group or a `lookupNameTemplate` if it differs from `depName`
- You must have either a `datasource` capture group or a `datasourceTemplate` config field
- You must have either a `datasource` capture group or a `datasourceTemplate` config field
- You can optionally have a `versioning` capture group or a `versioningTemplate` config field. If neither are present, `semver` will be used as the default
- You can optionally have a `versioning` capture group or a `versioningTemplate` config field. If neither are present, `semver` will be used as the default
- You can optionally have a `currentDigest` capture group.
### Regular Expression Capture Groups
### Regular Expression Capture Groups
...
@@ -29,7 +30,7 @@ To be fully effective with the regex manager, you will need to understand regula
...
@@ -29,7 +30,7 @@ To be fully effective with the regex manager, you will need to understand regula
Consider this `Dockerfile`:
Consider this `Dockerfile`:
```
```Dockerfile
FROM node:12
FROM node:12
ENV YARN_VERSION=1.19.1
ENV YARN_VERSION=1.19.1
RUN curl -o--L https://yarnpkg.com/install.sh | bash -s----version${YARN_VERSION}
RUN curl -o--L https://yarnpkg.com/install.sh | bash -s----version${YARN_VERSION}
...
@@ -60,11 +61,17 @@ In many cases, named capture groups alone won't be enough and you'll need to con
...
@@ -60,11 +61,17 @@ In many cases, named capture groups alone won't be enough and you'll need to con
Let's say that your `Dockerfile` has many `ENV` variables you want to keep updated and you prefer not to write one `regexManagers` rule per variable. Instead you could enhance your `Dockerfile` like the following:
Let's say that your `Dockerfile` has many `ENV` variables you want to keep updated and you prefer not to write one `regexManagers` rule per variable. Instead you could enhance your `Dockerfile` like the following: