From 1f0ba07b54dbec35ad375d45e58b07d78a5d2311 Mon Sep 17 00:00:00 2001 From: AcquaDiGiorgio <64639359+AcquaDiGiorgio@users.noreply.github.com> Date: Tue, 7 Jul 2026 15:56:29 +0200 Subject: [PATCH] feat: add renovate custom regex to manage rustfs image --- renovate.json | 27 ++++++++++++++++++++++++++- tests/conftest.py | 2 +- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/renovate.json b/renovate.json index 8085096..d8187a6 100644 --- a/renovate.json +++ b/renovate.json @@ -7,7 +7,8 @@ "enabledManagers": [ "pip_requirements", "pep621", - "github-actions" + "github-actions", + "custom.regex" ], "python": { "rangeStrategy": "auto" @@ -63,6 +64,30 @@ "matchPackagePatterns": ["pytest.*", "moto", "aiobotocore", "botocore"], "groupName": "Testing dependencies", "labels": ["dependencies", "testing"] + }, + { + "description": "rustfs w/o -glibc", + "matchDepNames": ["rustfs/rustfs"], + "matchCurrentVersion": "/\\d+(\\.\\d+(\\.\\d+(-\\w+\\.\\d+)?)?)?$/", + "allowedVersions": "/\\d+(\\.\\d+(\\.\\d+(-\\w+\\.\\d+)?)?)?$/" + }, + { + "description": "rustfs w/ -glibc", + "matchDepNames": ["rustfs/rustfs"], + "matchCurrentVersion": "/\\d+(\\.\\d+(\\.\\d+(-\\w+\\.\\d+)?)?)?(-glibc)$/", + "allowedVersions": "/\\d+(\\.\\d+(\\.\\d+(-\\w+\\.\\d+)?)?)?(-glibc)$/" + } + ], + "customManagers": [ + { + "customType": "regex", + "managerFilePatterns": ["/tests/conftest\\.py$/"], + "matchStrings": [ + "rustfs/rustfs:(?[\\w.-]+)" + ], + "depNameTemplate": "rustfs/rustfs", + "datasourceTemplate": "docker", + "versioningTemplate": "semver" } ] } diff --git a/tests/conftest.py b/tests/conftest.py index 27aab5f..927a4df 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -95,7 +95,7 @@ def rustfs_server(): "9000:9000", "-p", "9001:9001", - "rustfs/rustfs:1.0.0-alpha.82", # return to latest when https://github.com/rustfs/rustfs/issues/1773 is fixed + "rustfs/rustfs:1.0.0-alpha.82", "/data", ] # print(shlex.join(cmd))