Skip to content

Commit

Permalink
fix chart package target path
Browse files Browse the repository at this point in the history
  • Loading branch information
annabarnes1138 committed May 14, 2021
1 parent b0cf382 commit e496485
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/releaser/releaser.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,12 @@ func (r *Releaser) UpdateIndexFile() (bool, error) {
return false, err
}

packagePath := filepath.Join(worktree, "index.yaml")
packagePath := filepath.Join(worktree, filepath.Base(chartPackage))
fmt.Printf("Copying %s to %s", chartPackage, packagePath)
if err := copyFile(chartPackage, packagePath); err != nil {
return false, err
}
fmt.Printf("Adding %s to the worktree", filepath.Base(chartPackage))
if err := r.git.Add(worktree, packagePath); err != nil {
return false, err
}
Expand Down

0 comments on commit e496485

Please sign in to comment.