Skip to content

Commit bc5badb

Browse files
authored
CI: Add enterprise2 flag to unblock enterprise2 image deployments (grafana#59904)
Add hacky flag to unblock enterprise2
1 parent 1dbc22d commit bc5badb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pkg/build/cmd/main.go

+4
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ func main() {
168168
Flags: []cli.Flag{
169169
&jobsFlag,
170170
&editionFlag,
171+
&cli.BoolFlag{
172+
Name: "enterprise2",
173+
Usage: "Declare if the edition is enterprise2",
174+
},
171175
},
172176
},
173177
{

pkg/build/cmd/uploadpackages.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func UploadPackages(c *cli.Context) error {
8686
distDir: distDir,
8787
}
8888

89-
if cfg.edition == config.EditionEnterprise2 {
89+
if cfg.edition == config.EditionEnterprise2 || c.Bool("enterprise2") {
9090
if releaseModeConfig.Buckets.ArtifactsEnterprise2 != "" {
9191
cfg.Config.Bucket = releaseModeConfig.Buckets.ArtifactsEnterprise2
9292
} else {

0 commit comments

Comments
 (0)