app: added helm tgz handle
This commit is contained in:
@@ -72,8 +72,8 @@ func (cli *Client) PushImage(ctx context.Context, filepath, imagepath string) er
|
||||
|
||||
dstdir := auxtool.MakeTmpFilename(filepath)
|
||||
err = auxutar.Unarchive(filepath, dstdir)
|
||||
defer os.RemoveAll(dstdir)
|
||||
if err != nil {
|
||||
//os.RemoveAll(dstdir)
|
||||
return err
|
||||
}
|
||||
image, err := imageLoader(dstdir)
|
||||
@@ -84,10 +84,6 @@ func (cli *Client) PushImage(ctx context.Context, filepath, imagepath string) er
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = os.RemoveAll(dstdir)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user