From 5e11cc68aa981c5a3d7c94a68e9665150ce086c7 Mon Sep 17 00:00:00 2001 From: Mathias Brodala Date: Thu, 28 Nov 2024 10:07:04 +0100 Subject: [PATCH] docs(versioning:regex): add ghcr.io/linuxserver/openssh-server example (#32778) --- lib/modules/versioning/regex/readme.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/modules/versioning/regex/readme.md b/lib/modules/versioning/regex/readme.md index b8512e5c95ef55..a85825f31fe4e2 100644 --- a/lib/modules/versioning/regex/readme.md +++ b/lib/modules/versioning/regex/readme.md @@ -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:^(?\\d+)\\.(?\\d+)_p(?\\d+)-r(?\\d)-ls(?.+)$" + } + ] +} +```