-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path.goreleaser.yaml
50 lines (47 loc) · 1.18 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
# .goreleaser.yml
dist: apinto-build
builds:
- id: apserver
goos:
- linux
- darwin
goarch:
- amd64
- arm64
goarm:
- "6"
gomips:
- hardfloat
goamd64:
- v1
targets:
- linux_arm64
- linux_amd64
- darwin_arm64
- darwin_amd64
tags:
- release
- mysql
dir: ./app/apserver
main: ./
binary: apserver
builder: go
gobinary: go
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X "github.com/eolinker/apinto-dashboard/app/apserver/version.Version={{.Version}}"
- -X "github.com/eolinker/apinto-dashboard/app/apserver/version.gitcommit={{.Commit}}"
- -X "github.com/eolinker/apinto-dashboard/app/apserver/version.buildtime={{.Date}}"
- -X "github.com/eolinker/apinto-dashboard/app/apserver/version.builduser=goreleaser"
- -X "github.com/eolinker/apinto-dashboard/app/apserver/version.goversion={{.Env.GOVERSION}}"
archives:
- id: default
format: tar.gz
wrap_in_directory: "apserver_{{ .Tag }}"
name_template: "apserver_{{ .Tag }}_{{ .Os }}_{{ .Arch }}"
files:
- src: 'scripts/resource/*'
dst: /
strip_parent: true