-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
41 lines (37 loc) · 965 Bytes
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: 2
project_name: vergo
before:
hooks:
- go mod tidy
- go mod download
builds:
- main: main.go
binary: vergo
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
goarch:
- amd64
- arm64
flags:
- -trimpath
ldflags:
- -s
- -w
- -X github.com/sky-uk/vergo/cmd.version={{.Env.GORELEASER_CURRENT_TAG}}
- -X github.com/sky-uk/vergo/cmd.commit={{.Commit}}
- -X github.com/sky-uk/vergo/cmd.date={{.Date}}
- -X github.com/sky-uk/vergo/cmd.snapshot={{.IsSnapshot}}
- -X "github.com/sky-uk/vergo/cmd.builtBy={{.Env.BUILT_BY}}"
snapshot:
version_template: "{{ .Env.GORELEASER_CURRENT_TAG }}"
archives:
- id: default
builds:
- vergo
name_template: '{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
source:
name_template: '{{ .ProjectName }}-{{ .Tag }}'
format: tar.gz