@@ -57,6 +57,60 @@ builds:
5757 goarch :
5858 - s390x
5959 binary : tyk
60+ - id : fips-amd64
61+ flags :
62+ - -tags=goplugin,ee,fips
63+ - -trimpath
64+ env :
65+ - NOP=nop # ignore this, it is jsut to avoid a complex conditional in the templates
66+ - CC=gcc
67+ - GOFIPS140=v1.0.0
68+ ldflags :
69+ - -X github.com/TykTechnologies/tyk/internal/build.Version={{.Version}}
70+ - -X github.com/TykTechnologies/tyk/internal/build.Commit={{.FullCommit}}
71+ - -X github.com/TykTechnologies/tyk/internal/build.BuildDate={{.Date}}
72+ - -X github.com/TykTechnologies/tyk/internal/build.BuiltBy=goreleaser
73+ goos :
74+ - linux
75+ goarch :
76+ - amd64
77+ binary : tyk
78+ - id : fips-arm64
79+ flags :
80+ - -tags=goplugin,ee,fips
81+ - -trimpath
82+ env :
83+ - NOP=nop # ignore this, it is jsut to avoid a complex conditional in the templates
84+ - CC=aarch64-linux-gnu-gcc
85+ - GOFIPS140=v1.0.0
86+ ldflags :
87+ - -X github.com/TykTechnologies/tyk/internal/build.Version={{.Version}}
88+ - -X github.com/TykTechnologies/tyk/internal/build.Commit={{.FullCommit}}
89+ - -X github.com/TykTechnologies/tyk/internal/build.BuildDate={{.Date}}
90+ - -X github.com/TykTechnologies/tyk/internal/build.BuiltBy=goreleaser
91+ goos :
92+ - linux
93+ goarch :
94+ - arm64
95+ binary : tyk
96+ - id : fips-s390x
97+ flags :
98+ - -tags=goplugin,ee,fips
99+ - -trimpath
100+ env :
101+ - NOP=nop # ignore this, it is jsut to avoid a complex conditional in the templates
102+ - CC=s390x-linux-gnu-gcc
103+ - GOFIPS140=v1.0.0
104+ ldflags :
105+ - -X github.com/TykTechnologies/tyk/internal/build.Version={{.Version}}
106+ - -X github.com/TykTechnologies/tyk/internal/build.Commit={{.FullCommit}}
107+ - -X github.com/TykTechnologies/tyk/internal/build.BuildDate={{.Date}}
108+ - -X github.com/TykTechnologies/tyk/internal/build.BuiltBy=goreleaser
109+ goos :
110+ - linux
111+ goarch :
112+ - s390x
113+ binary : tyk
60114 - id : std-amd64
61115 flags :
62116 - -tags=goplugin
@@ -168,6 +222,65 @@ nfpms:
168222 signature :
169223 key_file : tyk.io.signing.key
170224 type : origin
225+ - id : fips
226+ vendor : " Tyk Technologies Ltd"
227+ homepage : " https://tyk.io"
228+ maintainer : " Tyk <info@tyk.io>"
229+ description : Tyk API Gateway Enterprise Edition written in Go, supporting REST, GraphQL, TCP and gRPC protocols Built with FIPS 140-3 compliant cryptography
230+ package_name : tyk-gateway-fips
231+ file_name_template : " {{ .ConventionalFileName }}"
232+ ids :
233+ - fips-amd64
234+ - fips-arm64
235+ - fips-s390x
236+ formats :
237+ - deb
238+ - rpm
239+ contents :
240+ - src : " README.md"
241+ dst : " /opt/share/docs/tyk-gateway/README.md"
242+ - src : " ci/install/*"
243+ dst : " /opt/tyk-gateway/install"
244+ - src : ci/install/inits/systemd/system/tyk-gateway.service
245+ dst : /lib/systemd/system/tyk-gateway.service
246+ - src : ci/install/inits/sysv/init.d/tyk-gateway
247+ dst : /etc/init.d/tyk-gateway
248+ - src : /opt/tyk-gateway
249+ dst : /opt/tyk
250+ type : " symlink"
251+ - src : " LICENSE.md"
252+ dst : " /opt/share/docs/tyk-gateway/LICENSE.md"
253+ - src : " apps/app_sample.*"
254+ dst : " /opt/tyk-gateway/apps"
255+ - src : " templates/*.json"
256+ dst : " /opt/tyk-gateway/templates"
257+ - src : " templates/playground/*"
258+ dst : " /opt/tyk-gateway/templates/playground"
259+ - src : " middleware/*.js"
260+ dst : " /opt/tyk-gateway/middleware"
261+ - src : " event_handlers/sample/*.js"
262+ dst : " /opt/tyk-gateway/event_handlers/sample"
263+ - src : " policies/*.json"
264+ dst : " /opt/tyk-gateway/policies"
265+ - src : " coprocess/*"
266+ dst : " /opt/tyk-gateway/coprocess"
267+ - src : tyk.conf.example
268+ dst : /opt/tyk-gateway/tyk.conf
269+ type : " config|noreplace"
270+ scripts :
271+ preinstall : " ci/install/before_install.sh"
272+ postinstall : " ci/install/post_install.sh"
273+ postremove : " ci/install/post_remove.sh"
274+ bindir : " /opt/tyk-gateway"
275+ rpm :
276+ scripts :
277+ posttrans : ci/install/post_trans.sh
278+ signature :
279+ key_file : tyk.io.signing.key
280+ deb :
281+ signature :
282+ key_file : tyk.io.signing.key
283+ type : origin
171284 - id : std
172285 vendor : " Tyk Technologies Ltd"
173286 homepage : " https://tyk.io"
@@ -234,6 +347,12 @@ publishers:
234347 env :
235348 - PACKAGECLOUD_TOKEN={{ .Env.PACKAGECLOUD_TOKEN }}
236349 cmd : packagecloud publish --debvers "{{ .Env.DEBVERS }}" --rpmvers "{{ .Env.RPMVERS }}" tyk/tyk-ee-unstable {{ .ArtifactPath }}
350+ - name : fips
351+ ids :
352+ - fips
353+ env :
354+ - PACKAGECLOUD_TOKEN={{ .Env.PACKAGECLOUD_TOKEN }}
355+ cmd : packagecloud publish --debvers "{{ .Env.DEBVERS }}" --rpmvers "{{ .Env.RPMVERS }}" tyk/tyk-ee-unstable {{ .ArtifactPath }}
237356 - name : std
238357 ids :
239358 - std
0 commit comments