Skip to content

Commit

Permalink
fix(tibuild): fix image sycn source validation regexp (#164)
Browse files Browse the repository at this point in the history
Signed-off-by: wuhuizuo <[email protected]>

Signed-off-by: wuhuizuo <[email protected]>
  • Loading branch information
wuhuizuo authored Aug 5, 2024
1 parent 6dcfc9c commit d319bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tibuild/pkg/rest/service/artifact_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,}.*$`)
}

Expand Down

0 comments on commit d319bf4

Please sign in to comment.