Skip to content

Commit 8b82aa2

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 f8c0e54 commit 8b82aa2

File tree

21 files changed

+639
-341
lines changed

21 files changed

+639
-341
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ REPOS ?= tyk tyk-analytics tyk-pump tyk-identity-broker tyk-sink portal t
1010
GITHUB_TOKEN ?= $(shell pass me/github)
1111
JIRA_USER ?= [email protected]
1212
JIRA_TOKEN ?= $(shell pass Tyk/atlassian)
13-
VARIATION ?= inverted
13+
VARIATION ?= prod-variation
1414

1515
gromit: go.mod go.sum *.go $(SRC) $(TEMPLATES) update-variation
1616
go build -v -trimpath -ldflags "-X github.com/TykTechnologies/gromit/util.version=$(VERSION) -X github.com/TykTechnologies/gromit/util.commit=$(COMMIT) -X github.com/TykTechnologies/gromit/util.buildDate=$(BUILD_DATE)"

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)