From dd02c5ad5606456c20c82d2cedaf3c6f382dd44f Mon Sep 17 00:00:00 2001 From: wuhuizuo Date: Wed, 16 Oct 2024 10:52:23 +0000 Subject: [PATCH] fix(publisher): fix `splitRepoAndTag` function Signed-off-by: wuhuizuo --- publisher/pkg/tiup/funcs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publisher/pkg/tiup/funcs.go b/publisher/pkg/tiup/funcs.go index 348d311..80ed4ac 100644 --- a/publisher/pkg/tiup/funcs.go +++ b/publisher/pkg/tiup/funcs.go @@ -238,7 +238,7 @@ func AnalyzeFromOciArtifactUrl(url string) ([]PublishRequest, error) { func splitRepoAndTag(url string) (string, string, error) { splitor := ":" - if !strings.Contains(url, "@sha256:") { + if strings.Contains(url, "@sha256:") { splitor = "@" } parts := strings.SplitN(url, splitor, 2)