-
Notifications
You must be signed in to change notification settings - Fork 34
/
.goreleaser.yml
98 lines (93 loc) · 2.26 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
version: 2
before:
hooks:
- go mod tidy
builds:
- id: server
main: ./cmd/goatak_server
binary: goatak_server
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- '-trimpath'
ldflags:
- '-s -w -X main.gitRevision={{.Version}} -X main.gitBranch={{.Branch}}'
goos: [ windows, linux, darwin ]
goarch: [ amd64, arm64 ]
ignore:
- goos: windows
goarch: arm64
- id: ctl
main: ./cmd/userctl
binary: userctl
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- '-s -w -X main.gitRevision={{.Version}} -X main.gitBranch={{.Branch}}'
goos: [ windows, linux, darwin ]
goarch: [ amd64, arm64 ]
ignore:
- goos: windows
goarch: arm64
- id: takreplay
main: ./cmd/takreplay
binary: takreplay
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- '-s -w -X main.gitRevision={{.Version}} -X main.gitBranch={{.Branch}}'
goos: [ windows, linux, darwin ]
goarch: [ amd64, arm64 ]
ignore:
- goos: windows
goarch: arm64
- id: client
main: ./cmd/webclient
binary: goatak_client
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- '-s -w -X main.gitRevision={{.Version}} -X main.gitBranch={{.Branch}}'
goos: [ windows, linux, darwin ]
goarch: [ amd64, arm64 ]
ignore:
- goos: windows
goarch: arm64
archives:
- id: server
builds: [ server, ctl, takreplay ]
format: zip
name_template: 'server_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ .Arm }}'
files:
- goatak_server.yml
- users.yml
- cert/*
- data/*
- id: client
builds: [ client, takreplay ]
format: zip
name_template: 'client_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ .Arm }}'
files:
- goatak_client*.yml
snapshot:
version_template: "{{.Summary}}"
changelog:
use: github
abbrev: -1
groups:
- title: Features
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: "Bug fixes"
regexp: '^.*?bug(\([[:word:]]+\))??!?:.+$'
order: 1
- title: Others
order: 999
filters:
exclude:
- typo
- \.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json