api/.goreleaser.yml
Peter def844c5fe Cleanup
- remove *.pb.go files
- remove *.mock.go files
- remove config2 references to get cleaner imports
- update dependencies
2020-06-15 12:32:18 +02:00

61 lines
1.2 KiB
YAML

# 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
builds:
- id: "inetmock"
binary: inetmock
main: ./cmd/inetmock/main.go
ldflags:
- -w -s
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- id: "imctl"
binary: imctl
main: ./cmd/imctl/main.go
ldflags:
- -w -s
goos:
- linux
- freebsd
- darwin
- windows
goarch:
- amd64
archives:
- id: inetmock
builds:
- inetmock
name_template: "{{ .ProjectName }}_server_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
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: []
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'