netmaker/.goreleaser.yaml

35 lines
670 B
YAML
Raw Normal View History

before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
builds:
- main: ./
env:
- CGO_ENABLED=1
ldflags:
- -s -w
targets:
- linux_amd64
2023-02-21 05:01:17 +08:00
binary: '{{ .ProjectName }}'
- main: ./cli
2023-02-21 05:01:17 +08:00
id: 'nmctl'
env:
- CGO_ENABLED=0
ldflags:
- -s -w
targets:
- linux_amd64
- linux_arm64
- darwin_amd64
- darwin_arm64
- freebsd_amd64
- windows_amd64
2023-02-21 05:01:17 +08:00
binary: 'nmctl'
archives:
- format: binary
name_template: '{{ .Binary }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}-{{ . }}{{ end }}'
2023-02-21 05:01:17 +08:00
release:
prerelease: false