mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-29 18:27:58 +08:00
fix: mirror warehouse image parsing error in ip:port format (#1867)
Signed-off-by: 张启航 <101104760+ZhangSetSail@users.noreply.github.com>
This commit is contained in:
parent
4a425b1b44
commit
3e977e665e
@ -325,7 +325,8 @@ func ParseImageName(s string) (i Image) {
|
||||
}
|
||||
i.name = name
|
||||
i.Tag = sources.GetTagFromNamedRef(name)
|
||||
if strings.Contains(s, ":") {
|
||||
imageNameList := strings.Split(s, "/")
|
||||
if strings.Contains(imageNameList[len(imageNameList)-1], ":") {
|
||||
i.Name = s[:len(s)-(len(i.Tag)+1)]
|
||||
} else {
|
||||
i.Name = s
|
||||
|
Loading…
Reference in New Issue
Block a user