change import app bug

This commit is contained in:
barnettZQG 2020-06-28 12:00:28 +08:00
parent 1dcd1a369f
commit 0097717b0b

View File

@ -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())
}