Skip to content

Commit 7a64e49

Browse files
freemankevinclaude
andcommitted
fix(minio): 修复 MinIO 最新版本获取失败
1. 更正 config.yaml 中 MinIO 的镜像路径: freemankevin/library/minio → freemankevin/minio/aistor/minio 2. version_fetcher.py 增加对 MinIO RELEASE.YYYY-MM-DDTHH-MM-SSZ 版本格式的解析支持。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 3803c49 commit 7a64e49

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

app/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ products:
6767
- MinIO
6868
category: storage
6969
enabled: true
70-
version_image: freemankevin/library/minio
70+
version_image: freemankevin/minio/aistor/minio
7171
- name: GeoServer
7272
keywords:
7373
- GeoServer

app/version_fetcher.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,19 @@ def get_latest_version(self, image: str) -> Optional[str]:
125125
tags = self.fetch_tags(image)
126126
# 提取版本号核心(如 4.2.5-management-alpine → 4.2.5)
127127
version_tags = []
128+
minio_tags = []
128129
for t in tags:
129130
m = re.match(r'^(\d+(?:\.\d+)*)(?:[-+_.].*)?$', t)
130131
if m:
131132
version_tags.append(m.group(1))
133+
continue
134+
# MinIO 格式: RELEASE.2026-05-04T23-02-27Z
135+
m = re.match(r'^RELEASE\.(\d{4}-\d{2}-\d{2}T\d{2}-\d{2}-\d{2}Z)$', t)
136+
if m:
137+
minio_tags.append(t)
138+
if minio_tags:
139+
# ISO 日期字典序即时间序
140+
return max(minio_tags)
132141
if not version_tags:
133142
return None
134143
return max(version_tags, key=_version_key)
@@ -141,10 +150,18 @@ def get_multi_branch_versions(self, image: str) -> Dict[str, str]:
141150
tags = self.fetch_tags(image)
142151
# 提取版本号核心
143152
version_tags = []
153+
minio_tags = []
144154
for t in tags:
145155
m = re.match(r'^(\d+(?:\.\d+)*)(?:[-+_.].*)?$', t)
146156
if m:
147157
version_tags.append(m.group(1))
158+
continue
159+
# MinIO 格式: RELEASE.2026-05-04T23-02-27Z
160+
m = re.match(r'^RELEASE\.(\d{4}-\d{2}-\d{2}T\d{2}-\d{2}-\d{2}Z)$', t)
161+
if m:
162+
minio_tags.append(t)
163+
if minio_tags:
164+
return {'latest': max(minio_tags)}
148165
if not version_tags:
149166
return {}
150167

0 commit comments

Comments
 (0)