@@ -57,6 +57,42 @@ builds:
5757 goarch :
5858 - s390x
5959 binary : tyk
60+ - id : fips-amd64
61+ flags :
62+ - -tags=goplugin,ee,fips,boringcrypto
63+ - -trimpath
64+ env :
65+ - NOP=nop # ignore this, it is jsut to avoid a complex conditional in the templates
66+ - CC=gcc
67+ - GOEXPERIMENT=boringcrypto
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,boringcrypto
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+ - GOEXPERIMENT=boringcrypto
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
6096 - id : std-amd64
6197 flags :
6298 - -tags=goplugin
@@ -168,6 +204,64 @@ nfpms:
168204 signature :
169205 key_file : tyk.io.signing.key
170206 type : origin
207+ - id : fips
208+ vendor : " Tyk Technologies Ltd"
209+ homepage : " https://tyk.io"
210+ maintainer : " Tyk <info@tyk.io>"
211+ description : Tyk API Gateway Enterprise Edition written in Go, supporting REST, GraphQL, TCP and gRPC protocols Built with boringssl
212+ package_name : tyk-gateway-fips
213+ file_name_template : " {{ .ConventionalFileName }}"
214+ ids :
215+ - fips-amd64
216+ - fips-arm64
217+ formats :
218+ - deb
219+ - rpm
220+ contents :
221+ - src : " README.md"
222+ dst : " /opt/share/docs/tyk-gateway/README.md"
223+ - src : " ci/install/*"
224+ dst : " /opt/tyk-gateway/install"
225+ - src : ci/install/inits/systemd/system/tyk-gateway.service
226+ dst : /lib/systemd/system/tyk-gateway.service
227+ - src : ci/install/inits/sysv/init.d/tyk-gateway
228+ dst : /etc/init.d/tyk-gateway
229+ - src : /opt/tyk-gateway
230+ dst : /opt/tyk
231+ type : " symlink"
232+ - src : " LICENSE.md"
233+ dst : " /opt/share/docs/tyk-gateway/LICENSE.md"
234+ - src : " apps/app_sample.*"
235+ dst : " /opt/tyk-gateway/apps"
236+ - src : " templates/*.json"
237+ dst : " /opt/tyk-gateway/templates"
238+ - src : " templates/playground/*"
239+ dst : " /opt/tyk-gateway/templates/playground"
240+ - src : " middleware/*.js"
241+ dst : " /opt/tyk-gateway/middleware"
242+ - src : " event_handlers/sample/*.js"
243+ dst : " /opt/tyk-gateway/event_handlers/sample"
244+ - src : " policies/*.json"
245+ dst : " /opt/tyk-gateway/policies"
246+ - src : " coprocess/*"
247+ dst : " /opt/tyk-gateway/coprocess"
248+ - src : tyk.conf.example
249+ dst : /opt/tyk-gateway/tyk.conf
250+ type : " config|noreplace"
251+ scripts :
252+ preinstall : " ci/install/before_install.sh"
253+ postinstall : " ci/install/post_install.sh"
254+ postremove : " ci/install/post_remove.sh"
255+ bindir : " /opt/tyk-gateway"
256+ rpm :
257+ scripts :
258+ posttrans : ci/install/post_trans.sh
259+ signature :
260+ key_file : tyk.io.signing.key
261+ deb :
262+ signature :
263+ key_file : tyk.io.signing.key
264+ type : origin
171265 - id : std
172266 vendor : " Tyk Technologies Ltd"
173267 homepage : " https://tyk.io"
@@ -234,6 +328,12 @@ publishers:
234328 env :
235329 - PACKAGECLOUD_TOKEN={{ .Env.PACKAGECLOUD_TOKEN }}
236330 cmd : packagecloud publish --debvers "{{ .Env.DEBVERS }}" --rpmvers "{{ .Env.RPMVERS }}" tyk/tyk-ee-unstable {{ .ArtifactPath }}
331+ - name : fips
332+ ids :
333+ - fips
334+ env :
335+ - PACKAGECLOUD_TOKEN={{ .Env.PACKAGECLOUD_TOKEN }}
336+ cmd : packagecloud publish --debvers "{{ .Env.DEBVERS }}" --rpmvers "{{ .Env.RPMVERS }}" tyk/tyk-ee-unstable {{ .ArtifactPath }}
237337 - name : std
238338 ids :
239339 - std
0 commit comments