From d319bf4ffa81bfcfb15b51d3cce8a2444326ae86 Mon Sep 17 00:00:00 2001 From: wuhuizuo Date: Mon, 5 Aug 2024 10:50:08 +0800 Subject: [PATCH] fix(tibuild): fix image sycn source validation regexp (#164) Signed-off-by: wuhuizuo Signed-off-by: wuhuizuo --- tibuild/pkg/rest/service/artifact_helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tibuild/pkg/rest/service/artifact_helper.go b/tibuild/pkg/rest/service/artifact_helper.go index 5040ca83..4621d041 100644 --- a/tibuild/pkg/rest/service/artifact_helper.go +++ b/tibuild/pkg/rest/service/artifact_helper.go @@ -45,7 +45,7 @@ var source_image_reg *regexp.Regexp var target_image_reg *regexp.Regexp func init() { - source_image_reg = regexp.MustCompile(`^hub.pingcap.net/qa/[\w-]+:v\d+\.\d+\.\d-\d{8,}.*$`) + source_image_reg = regexp.MustCompile(`^hub.pingcap.net/qa/[\w-]+:v\d+\.\d+\.\d+-\d{8,}.*$`) target_image_reg = regexp.MustCompile(`^(docker.io/)?pingcap/[\w-]+:v\d+\.\d+\.\d+-\d{8,}.*$`) }