mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 03:37:46 +08:00
change import app bug
This commit is contained in:
parent
1dcd1a369f
commit
0097717b0b
@ -397,8 +397,10 @@ func (i *ImportApp) loadApps() error {
|
||||
if strings.Contains(err.Error(), "No such image") {
|
||||
err = sources.ImageTag(i.DockerClient, "goodrain.me/"+saveImageName, image, i.Logger, 2)
|
||||
}
|
||||
if err != nil {
|
||||
return fmt.Errorf("change image tag(%s => %s) error %s", saveImageName, image, err.Error())
|
||||
}
|
||||
}
|
||||
if err := sources.ImagePush(i.DockerClient, image, i.ServiceImage.HubUser, i.ServiceImage.HubPassword, i.Logger, 30); err != nil {
|
||||
return fmt.Errorf("push image %s error %s", image, err.Error())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user