Configure for goreleaser
This commit is contained in:
44
.goreleaser.yaml
Normal file
44
.goreleaser.yaml
Normal file
@ -0,0 +1,44 @@
|
||||
version: 2
|
||||
|
||||
before:
|
||||
hooks:
|
||||
- go mod tidy
|
||||
|
||||
builds:
|
||||
- id: qv
|
||||
main: ./cmd/web
|
||||
binary: qv
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- linux
|
||||
- windows
|
||||
- darwin
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
goamd64:
|
||||
- v1
|
||||
- v2
|
||||
- v3
|
||||
- v4
|
||||
goarm64:
|
||||
- v8.0
|
||||
ldflags:
|
||||
- -s -w
|
||||
|
||||
archives:
|
||||
- id: qv-archive
|
||||
allow_different_binary_count: true
|
||||
name_template: >-
|
||||
{{ .ProjectName }}_
|
||||
{{- .Os }}_
|
||||
{{- .Arch }}_
|
||||
{{- if eq .Arch "amd64" }}{{ .Amd64 }}
|
||||
{{- else if eq .Arch "arm64" }}{{ .Arm64 }}
|
||||
{{- end }}
|
||||
format: tar.gz
|
||||
format_overrides:
|
||||
- goos: windows
|
||||
formats: [ "zip" ]
|
||||
|
Reference in New Issue
Block a user