-
Notifications
You must be signed in to change notification settings - Fork 204
/
.goreleaser.yaml
56 lines (56 loc) · 1.4 KB
/
.goreleaser.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# .goreleaser.yml
builds:
- id: apinto
goos:
- linux
- darwin
goarch:
- amd64
- arm64
- loong64
- mips64le
goarm:
- "6"
- "7"
gomips:
- softfloat
goamd64:
- v2
- v3
targets:
- linux_arm64
- linux_amd64
- darwin_arm64
- darwin_amd64
- linux_loong64
- linux_mips64le
dir: ./app/apinto
main: .
binary: apinto
builder: go
gobinary: go
# ldflags:
# - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
# -
ldflags:
- -s -w
- -X "github.com/eolinker/apinto/utils/version.Version={{.Version}}"
- -X "github.com/eolinker/apinto/utils/version.gitCommit={{.Commit}}"
- -X "github.com/eolinker/apinto/utils/version.buildTime={{.Date}}"
- -X "github.com/eolinker/apinto/utils/version.buildUser=goreleaser"
- -X "github.com/eolinker/apinto/utils/version.goVersion={{.Env.GOVERSION}}"
- -X "github.com/eolinker/apinto/utils/version.eoscVersion={{.Env.EoscVersion}}"
env:
- CGO_ENABLED=0
archives:
- id: default
format: tar.gz
wrap_in_directory: apinto
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}"
files:
- src: 'build/resources/*'
dst: /
strip_parent: true
release:
name_template: "{{ .Tag }}"
mode: append