-
Notifications
You must be signed in to change notification settings - Fork 222
/
.goreleaser.yml
43 lines (43 loc) · 1.06 KB
/
.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
42
43
# This is an example .goreleaser.yml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- ls -rtlh
- ls -rtlh api/internal/ui/dist
- go mod download -x
builds:
- id: clickvisual
main: .
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
binary: clickvisual
ldflags:
- -s -w -extldflags -static -X github.com/gotomicro/ego/core/eapp.appName={{.ProjectName}} -X github.com/gotomicro/ego/core/eapp.buildAppVersion={{.Version}} -X github.com/gotomicro/ego/core/eapp.buildTime={{.Date}}
archives:
- id: clickvisual
builds:
- clickvisual
name_template: "clickvisual-v{{ .Version }}-{{ .Os }}-{{ .Arch }}"
files:
- LICENSE
- scripts/migration
- docker-compose.yml
- src: config/*
dst: config
strip_parent: true
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'