Skip to content

Commit

Permalink
Add tools/zoneinfo.zip back to .tar.gz output (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashharrison90 authored Nov 29, 2023
1 parent c87f8eb commit 49f7cda
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions artifacts/package_targz.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ type Tarball struct {
Name packages.Name
BuildID string
Version string
GoVersion string
Enterprise bool

Grafana *dagger.Directory
Expand Down Expand Up @@ -172,6 +173,7 @@ func NewTarball(
Name: name,
Distribution: distro,
Version: version,
GoVersion: goVersion,
BuildID: buildID,
Grafana: src,
Enterprise: enterprise,
Expand Down Expand Up @@ -245,11 +247,12 @@ func (t *Tarball) BuildFile(ctx context.Context, b *dagger.Container, opts *pipe
}

files := map[string]*dagger.File{
"VERSION": b.File("VERSION"),
"LICENSE": grafanaDir.File("LICENSE"),
"NOTICE.md": grafanaDir.File("NOTICE.md"),
"README.md": grafanaDir.File("README.md"),
"Dockerfile": grafanaDir.File("Dockerfile"),
"VERSION": b.File("VERSION"),
"LICENSE": grafanaDir.File("LICENSE"),
"NOTICE.md": grafanaDir.File("NOTICE.md"),
"README.md": grafanaDir.File("README.md"),
"Dockerfile": grafanaDir.File("Dockerfile"),
"tools/zoneinfo.zip": opts.Client.Container().From(fmt.Sprintf("golang:%s", t.GoVersion)).File("/usr/local/go/lib/time/zoneinfo.zip"),
}

directories := map[string]*dagger.Directory{
Expand Down

0 comments on commit 49f7cda

Please sign in to comment.