helmchart: use dir of artifact path on package run
This commit is contained in:
parent
b7603f9fd3
commit
2c4dcfe72d
|
|
@ -23,6 +23,7 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
|
@ -383,7 +384,7 @@ func (r *HelmChartReconciler) reconcileFromGitRepository(ctx context.Context,
|
||||||
|
|
||||||
// package chart
|
// package chart
|
||||||
pkg := action.NewPackage()
|
pkg := action.NewPackage()
|
||||||
pkg.Destination = artifact.Path
|
pkg.Destination = filepath.Dir(artifact.Path)
|
||||||
_, err = pkg.Run(chartPath, nil)
|
_, err = pkg.Run(chartPath, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err = fmt.Errorf("chart package error: %w", err)
|
err = fmt.Errorf("chart package error: %w", err)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue