Skip to content

Commit bd9acbb

Browse files
Alok G Singhalephnull
Alok G Singh
authored andcommitted
Introduce the build concept
A new key Builds at the repo and branch levels contains the builds for a repo. Upgrade tests use the std build artefacts.
1 parent 24de438 commit bd9acbb

File tree

20 files changed

+643
-346
lines changed

20 files changed

+643
-346
lines changed

cmd/policy.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"bytes"
2020
"fmt"
2121
"os"
22+
"strings"
2223

2324
"github.com/TykTechnologies/gromit/policy"
2425
"github.com/rs/zerolog/log"
@@ -223,7 +224,8 @@ var matchSubCmd = &cobra.Command{
223224
return err
224225
}
225226

226-
repos := []string{"tyk-ee", "tyk-analytics", "tyk-pump", "tyk-sink"}
227+
rs, _ := cmd.Flags().GetString("repos")
228+
repos := strings.Split(rs, ",")
227229
tagOverride := args[0]
228230
tagMatch := args[1]
229231

@@ -275,6 +277,7 @@ func init() {
275277
serveSubCmd.Flags().String("save", "testdata/tui", "Test variations are loaded from and saved to this directory")
276278

277279
matchSubCmd.Flags().String("config", "$HOME/.docker/config.json", "Config file to read authentication token from")
280+
matchSubCmd.Flags().String("repos", "tyk-ee,tyk-analytics,tyk-pump,tyk-sink", "Config file to read authentication token from")
278281

279282
policyCmd.AddCommand(matchSubCmd)
280283
policyCmd.AddCommand(syncSubCmd)

0 commit comments

Comments
 (0)