Skip to content

Commit

Permalink
docs(versioning:regex): add ghcr.io/linuxserver/openssh-server example (
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrodala authored Nov 28, 2024
1 parent d949a91 commit 5e11cc6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/modules/versioning/regex/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,17 @@ Here is another example, this time for handling Bitnami Docker images, which use
]
}
```

Here is another example, this time for handling `ghcr.io/linuxserver/openssh-server` Docker images, which use `patch`, `build` and `revision` indicators with string prefixes:

```json
{
"packageRules": [
{
"matchDatasources": ["docker"],
"matchPackageNamees": ["ghcr.io/linuxserver/openssh-server"],
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)_p(?<patch>\\d+)-r(?<build>\\d)-ls(?<revision>.+)$"
}
]
}
```

0 comments on commit 5e11cc6

Please sign in to comment.