Skip to content

Commit

Permalink
Fix tar.gz root folder (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
guicaulada committed Aug 22, 2023
1 parent 212ea53 commit c345ed4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions pipelines/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"
"path"
"strings"

"dagger.io/dagger"
"github.com/grafana/grafana-build/containers"
Expand Down Expand Up @@ -104,13 +105,7 @@ func PackageFiles(ctx context.Context, d *dagger.Client, opts PackageOpts) (map[
storybook = containers.Storybook(d, opts.Platform, src, cacheOpts, version, nodeVersion)
)

name := "grafana"
if edition != "" {
name = fmt.Sprintf("%s-%s", name, edition)
}

root := fmt.Sprintf("%s-%s", name, version)

root := fmt.Sprintf("grafana-%s", strings.TrimPrefix(version, "v"))
packages := make(map[executil.Distribution]*dagger.File, len(backends))

paths := PackagedPaths
Expand Down

0 comments on commit c345ed4

Please sign in to comment.