-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto generated from templates by gromit
- Loading branch information
Gromit
committed
Jun 10, 2024
1 parent
27bd9b5
commit 048d887
Showing
2 changed files
with
135 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
# This project needs CGO_ENABLED=1 and the cross-compiler toolchains for | ||
# - arm64 | ||
# - amd64 | ||
|
||
builds: | ||
- id: std-linux | ||
flags: | ||
|
@@ -18,6 +19,22 @@ builds: | |
goarch: | ||
- amd64 | ||
binary: tyk | ||
- id: fips-linux | ||
flags: | ||
- -tags=goplugin | ||
- -tags=goplugin,fips,boringcrypto | ||
env: | ||
- GOEXPERIMENT=boringcrypto | ||
ldflags: | ||
- -X github.com/TykTechnologies/tyk/internal/build.Version={{.Version}} | ||
- -X github.com/TykTechnologies/tyk/internal/build.Commit={{.FullCommit}} | ||
- -X github.com/TykTechnologies/tyk/internal/build.BuildDate={{.Date}} | ||
- -X github.com/TykTechnologies/tyk/internal/build.BuiltBy=goreleaser | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
binary: tyk | ||
- id: std-arm64 | ||
flags: | ||
- -tags=goplugin | ||
|
@@ -160,7 +177,63 @@ nfpms: | |
builds: | ||
- std-linux | ||
- std-arm64 | ||
- std-s390x | ||
formats: | ||
- deb | ||
- rpm | ||
contents: | ||
- src: "README.md" | ||
dst: "/opt/share/docs/tyk-gateway/README.md" | ||
- src: "ci/install/*" | ||
dst: "/opt/tyk-gateway/install" | ||
- src: ci/install/inits/systemd/system/tyk-gateway.service | ||
dst: /lib/systemd/system/tyk-gateway.service | ||
- src: ci/install/inits/sysv/init.d/tyk-gateway | ||
dst: /etc/init.d/tyk-gateway | ||
- src: /opt/tyk-gateway | ||
dst: /opt/tyk | ||
type: "symlink" | ||
- src: "LICENSE.md" | ||
dst: "/opt/share/docs/tyk-gateway/LICENSE.md" | ||
- src: "apps/app_sample.*" | ||
dst: "/opt/tyk-gateway/apps" | ||
- src: "templates/*.json" | ||
dst: "/opt/tyk-gateway/templates" | ||
- src: "templates/playground/*" | ||
dst: "/opt/tyk-gateway/templates/playground" | ||
- src: "middleware/*.js" | ||
dst: "/opt/tyk-gateway/middleware" | ||
- src: "event_handlers/sample/*.js" | ||
dst: "/opt/tyk-gateway/event_handlers/sample" | ||
- src: "policies/*.json" | ||
dst: "/opt/tyk-gateway/policies" | ||
- src: "coprocess/*" | ||
dst: "/opt/tyk-gateway/coprocess" | ||
- src: tyk.conf.example | ||
dst: /opt/tyk-gateway/tyk.conf | ||
type: "config|noreplace" | ||
scripts: | ||
preinstall: "ci/install/before_install.sh" | ||
postinstall: "ci/install/post_install.sh" | ||
postremove: "ci/install/post_remove.sh" | ||
bindir: "/opt/tyk-gateway" | ||
rpm: | ||
scripts: | ||
posttrans: ci/install/post_trans.sh | ||
signature: | ||
key_file: tyk.io.signing.key | ||
deb: | ||
signature: | ||
key_file: tyk.io.signing.key | ||
type: origin | ||
- id: fips | ||
vendor: "Tyk Technologies Ltd" | ||
homepage: "https://tyk.io" | ||
maintainer: "Tyk <[email protected]>" | ||
description: Tyk Open Source API Gateway written in Go, supporting REST, GraphQL, TCP and gRPC protocols | ||
package_name: tyk-gateway-fips | ||
file_name_template: "{{ .ConventionalFileName }}" | ||
builds: | ||
- fips | ||
formats: | ||
- deb | ||
- rpm | ||
|