Files
Kevin Minehart 13f4cf162e CI: move grafana-build into pkg/build (#105640)
* move grafana-build into pkg/build
2025-05-20 10:48:00 -05:00

17 lines
474 B
Go

package containers
import "github.com/grafana/grafana/pkg/build/daggerbuild/cliutil"
// GCPOpts are options used when using Google Cloud Platform / the Google Cloud SDK.
type GCPOpts struct {
ServiceAccountKey string
ServiceAccountKeyBase64 string
}
func GCPOptsFromFlags(c cliutil.CLIContext) *GCPOpts {
return &GCPOpts{
ServiceAccountKeyBase64: c.String("gcp-service-account-key-base64"),
ServiceAccountKey: c.String("gcp-service-account-key"),
}
}