helm: Fix directory name when working on a compressed app.
@@ -38,6 +38,7 @@ func toHelmMeta(meta *types.AppMetadata) (*helmMeta, error) {
// Helm renders an app as an Helm Chart
func Helm(appname string, composeFiles []string, settingsFile []string, env map[string]string) error {
+ oAppname := appname
appname, cleanup, err := packager.Extract(appname)
if err != nil {
return err
@@ -57,7 +58,7 @@ func Helm(appname string, composeFiles []string, settingsFile []string, env map[
if err != nil {
return err
}
- targetDir := utils.AppNameFromDir(appname) + ".helm"
+ targetDir := utils.AppNameFromDir(oAppname) + ".helm"
os.Mkdir(targetDir, 0755)
hmeta, err := toHelmMeta(&meta)
if err != nil {
