api/.goreleaser.yml

61 lines
1.2 KiB
YAML
Raw Normal View History

2020-04-08 22:44:13 +00:00
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- make generate plugins
2020-04-08 22:44:13 +00:00
builds:
- id: "inetmock"
binary: inetmock
main: ./cmd/inetmock/main.go
2020-04-08 22:44:13 +00:00
ldflags:
- -w -s
env:
- CGO_ENABLED=0
2020-04-08 22:44:13 +00:00
goos:
- linux
- darwin
2020-04-08 22:44:13 +00:00
goarch:
- amd64
- id: "imctl"
binary: imctl
main: ./cmd/imctl/main.go
ldflags:
- -w -s
goos:
- linux
- freebsd
- darwin
- windows
goarch:
- amd64
2020-04-08 22:44:13 +00:00
archives:
- id: inetmock
2020-04-08 22:44:13 +00:00
builds:
- inetmock
name_template: "{{ .ProjectName }}_server_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
2020-04-08 22:44:13 +00:00
replacements:
amd64: x86_64
wrap_in_directory: true
files:
- config.yaml
- "*.so"
- id: imctl
builds:
- imctl
name_template: "{{ .ProjectName }}_cli_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
replacements:
amd64: x86_64
wrap_in_directory: true
files: []
2020-04-08 22:44:13 +00:00
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'