Skip to content

Commit 736e90a

Browse files
committed
bugs
1 parent bd9acbb commit 736e90a

File tree

6 files changed

+40
-17
lines changed

6 files changed

+40
-17
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ 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 ?= prod-variations
13+
VARIATION ?= prod-variation
1414
PC_TOKEN ?= $(shell pass Tyk/packagecloud)
1515

1616
UNSTABLE_REPOS := tyk-gateway-unstable tyk-dashboard-unstable tyk-pump-unstable tyk-mdcb-unstable portal-unstable tyk-identity-broker-unstable tyk-sync-unstable
1717
STABLE_REPOS := tyk-gateway tyk-dashboard tyk-pump tyk-mdcb portal tyk-identity-broker
18+
1819
gromit: go.mod go.sum *.go $(SRC) $(TEMPLATES) update-variation
1920
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)"
2021
go mod tidy

config/config.yaml

+23-8
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ policy:
4343
buildenv: 1.23-bullseye
4444
# baseimage what the container images are based on. It needs to be a
4545
# debian compatible distro as the Dockerfile assumes apt-get
46-
baseimage: debian:bookworm-slim
46+
baseimage: debian:trixie-slim
4747
# distrolessbaseimage is used for container images when the
4848
# distroless feature is set. base is appropriate for cgo
4949
# builds, static for pure go.
@@ -172,17 +172,12 @@ policy:
172172
features:
173173
- distroless
174174
- release-test
175-
release-5.5:
176-
buildenv: 1.21-bullseye
177-
features:
178-
- s390x
179-
- release-test
180175
release-5-lts:
181176
buildenv: 1.16
182177
features:
183178
- plugin-compiler-fix-vendor
184179
- python-support
185-
release-5.7:
180+
release-5.8:
186181
builds:
187182
ee:
188183
flags:
@@ -260,6 +255,26 @@ policy:
260255
docker: linux/amd64
261256
env:
262257
- GOEXPERIMENT=boringcrypto
258+
ee:
259+
flags:
260+
- -tags=goplugin,ee
261+
description: >-
262+
Enterprise Edition Dashboard for the Tyk API Gateway.
263+
imagetitle: Tyk Dashboard Enterprise Edition
264+
buildpackagename: tyk-dashboard-ee
265+
pcrepo: tyk-ee-unstable
266+
dhrepo: tykio/tyk-gateway-ee
267+
cirepo: tyk-ee
268+
archs:
269+
- go: amd64
270+
deb: amd64
271+
docker: linux/amd64
272+
- go: arm64
273+
deb: aarch64
274+
docker: linux/arm64
275+
- go: s390x
276+
deb: s390x
277+
docker: linux/s390x
263278
branches:
264279
master:
265280
cgo: false
@@ -477,7 +492,7 @@ policy:
477492
main:
478493

479494
# pkgs is used by the pkgs subcommand to weed packagecloud. Unlike the
480-
# policy, key, you cannot override parameters from other levels.
495+
# policy key, you cannot override parameters from other levels.
481496
# Precedence is exceptions > versioncutoff > agecutoff
482497

483498
# Quirks of x/mod/semver:

policy/templates/releng/.github/workflows/release.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ name: Release
1111
# - devenv ECR
1212
# - Cloudsmith
1313

14-
# concurrency:
15-
# group: {{`${{ github.workflow }}-${{ github.ref }}`}}
16-
# cancel-in-progress: {{`${{ github.event_name == 'pull_request' }}`}}
14+
concurrency:
15+
group: {{`${{ github.workflow }}-${{ github.ref }}`}}
16+
cancel-in-progress: {{`${{ github.event_name == 'pull_request' }}`}}
1717

1818
on:
19+
# Trigger release every monday at midnight for master CI images
20+
schedule:
21+
- cron: "0 0 * * 1"
1922
pull_request:
2023
push:
2124
branches:

policy/templates/releng/.github/workflows/release.yml.d/smoke-tests.gotmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999

100100
- name: Test the built container image with api functionality test.
101101
run: |
102-
docker run -d -p8080:8080 --name=test --network {{`${{ job.container.network }}`}} --rm test-{{`${{ matrix.distro }}-${{ matrix.arch }}`}}
102+
docker run -d -p8080:8080 --name=test --platform linux/{{`${{ matrix.arch }}`}} --network {{`${{ job.container.network }}`}} --rm test-{{`${{ matrix.distro }}-${{ matrix.arch }}`}}
103103
sleep 2
104104
./ci/tests/api-functionality/api_test.sh
105105
sleep 2

policy/templates/subtemplates/auto/auto-test.gotmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
{{- if eq .dot.Name "tyk-pro" }}
101101
tags=($match_tag)
102102
{{ else }}
103-
tags=({{`${{ needs.goreleaser.outputs.tags }}`}})
103+
tags=({{`${{ needs.goreleaser.outputs.std_tags }}`}})
104104
{{ end -}}
105105
set -eaxo pipefail
106106
docker run -q --rm -v ~/.docker/config.json:/root/.docker/config.json tykio/gromit policy match ${tags[0]} ${match_tag} 2>versions.env

policy/tfuncs.go

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
package policy
22

3-
import "reflect"
3+
import (
4+
"reflect"
5+
6+
"github.com/TykTechnologies/gromit/util"
7+
)
48

59
// Template functions called while rendering
610

@@ -14,7 +18,7 @@ func (rp RepoPolicy) GetCC(target, host string) string {
1418

1519
// getImages returns the list of container manifests
1620
func (rp RepoPolicy) GetImages(repos ...string) []string {
17-
images := make(set[string])
21+
images := make(util.Set[string])
1822
for _, bv := range rp.Branchvals.Builds {
1923
for _, repo := range repos {
2024
image := getBuildField(bv, repo)
@@ -28,7 +32,7 @@ func (rp RepoPolicy) GetImages(repos ...string) []string {
2832

2933
// getDockerPlatforms returns the list of docker platforms that are to be supported
3034
func (rp RepoPolicy) GetDockerPlatforms() []string {
31-
platforms := make(set[string])
35+
platforms := make(util.Set[string])
3236
for _, bv := range rp.Branchvals.Builds {
3337
for _, a := range bv.Archs {
3438
if len(a.Docker) > 0 {

0 commit comments

Comments
 (0)