CI: Build pre-release artifacts in GhA on merge to release branches and main. (#106779)

* Add grafana-build action and workflow

* Fix the --verify flag stalling on tar.gz builds

* Add event sources for main / release branches

* Update CODEOWNERS
This commit is contained in:
Kevin Minehart
2025-06-16 22:54:50 +02:00
committed by GitHub
parent 09e8484bac
commit 8b370bb6a5
30 changed files with 351 additions and 2399 deletions
+5 -6
View File
@@ -2,27 +2,26 @@ package msi
import (
"dagger.io/dagger"
"github.com/grafana/grafana/pkg/build/daggerbuild/containers"
)
func Builder(d *dagger.Client) (*dagger.Container, error) {
func Builder(d *dagger.Client, src *dagger.Directory) *dagger.Container {
nssm := d.Container().From("busybox").
WithExec([]string{"wget", "https://dl.grafana.com/ci/nssm-2.24.zip"}).
WithExec([]string{"wget", "-q", "https://dl.grafana.com/ci/nssm-2.24.zip"}).
WithExec([]string{"unzip", "nssm-2.24.zip"}).
Directory("nssm-2.24")
wix3 := d.Container().From("busybox").
WithWorkdir("/src").
WithExec([]string{"wget", "https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip"}).
WithExec([]string{"wget", "-q", "https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip"}).
WithExec([]string{"unzip", "wix314-binaries.zip"}).
WithExec([]string{"rm", "wix314-binaries.zip"}).
Directory("/src")
builder := d.Container().From("scottyhardy/docker-wine:stable-9.0").
builder := d.Container().From("scottyhardy/docker-wine:stable-10.0-20250608").
WithEntrypoint([]string{}).
WithMountedDirectory("/src/nssm-2.24", nssm).
WithMountedDirectory("/src/wix3", wix3).
WithWorkdir("/src")
return containers.WithEmbeddedFS(d, builder, "/src/resources", resources)
return builder.WithMountedDirectory("/src/resources", src.Directory("pkg/build/daggerbuild/msi/resources"))
}