forked from formancehq/ledger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
169 lines (159 loc) · 4.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
project_name: numary
env:
- GO111MODULE=on
- GOPROXY=https://proxy.golang.org
before:
hooks:
- go mod download
builds:
- binary: numary
id: numary_windows
ldflags:
- -X github.com/numary/ledger/cmd.BuildDate={{ .Date }}
- -X github.com/numary/ledger/cmd.Version={{ .Version }}
- -X github.com/numary/ledger/cmd.Commit={{ .ShortCommit }}
- -X github.com/numary/ledger/cmd.DefaultSegmentWriteKey={{ .Env.SEGMENT_WRITE_KEY }}
env:
- CGO_ENABLED=1
- CC=x86_64-w64-mingw32-gcc
goos:
- windows
goarch:
- amd64
flags:
- -tags=json1
- binary: numary
id: numary_linux_amd64
ldflags:
- -X github.com/numary/ledger/cmd.BuildDate={{ .Date }}
- -X github.com/numary/ledger/cmd.Version={{ .Version }}
- -X github.com/numary/ledger/cmd.Commit={{ .ShortCommit }}
- -X github.com/numary/ledger/cmd.DefaultSegmentWriteKey={{ .Env.SEGMENT_WRITE_KEY }}
- -extldflags "-static"
env:
- CGO_ENABLED=1
goos:
- linux
goarch:
- amd64
flags:
- -tags=json1,netgo
- binary: numary
id: numary_linux_arm64
ldflags:
- -X github.com/numary/ledger/cmd.BuildDate={{ .Date }}
- -X github.com/numary/ledger/cmd.Version={{ .Version }}
- -X github.com/numary/ledger/cmd.Commit={{ .ShortCommit }}
- -X github.com/numary/ledger/cmd.DefaultSegmentWriteKey={{ .Env.SEGMENT_WRITE_KEY }}
- -extldflags "-static"
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
goos:
- linux
goarch:
- arm64
flags:
- -tags=json1,netgo
- binary: numary
id: numary_darwin
ldflags:
- -X github.com/numary/ledger/cmd.BuildDate={{ .Date }}
- -X github.com/numary/ledger/cmd.Version={{ .Version }}
- -X github.com/numary/ledger/cmd.Commit={{ .ShortCommit }}
- -X github.com/numary/ledger/cmd.DefaultSegmentWriteKey={{ .Env.SEGMENT_WRITE_KEY }}
- -s
env:
- CGO_ENABLED=1
- CC=/home/runner/work/osxcross/target/bin/o64-clang
- CXX=/home/runner/work/osxcross/target/bin/o64-clang++
goos:
- darwin
goarch:
- amd64
- arm64
flags:
- -tags=json1
archives:
- id: "numary"
builds:
- numary_linux_amd64
- numary_linux_arm64
- numary_darwin
- numary_windows
format: tar.gz
format_overrides:
- goos: windows
format: zip
name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
replacements:
amd64: 64bit
386: 32bit
arm: ARM
arm64: ARM64
darwin: macOS
linux: Linux
windows: Windows
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc
use: github
filters:
exclude:
- '^docs:'
- '^test:'
- '^spec:'
- Merge pull request
- Merge remote-tracking branch
- Merge branch
- go mod tidy
groups:
- title: 'New Features'
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 10
- title: Other work
order: 999
release:
prerelease: auto
footer: |
## Want to try this version ?
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/numary/ledger/tree/{{ .Tag }}&version={{ .Tag }})
## What to do next?
- Read the [documentation](https://docs.numary.com/oss/ledger/get-started/installation)
- Join our [Discord server](https://discord.gg/xyHvcbzk4w)
brews:
- tap:
owner: formancehq
name: homebrew-tap
name: numary
folder: Formula
homepage: https://formance.com
skip_upload: auto
test: |
system "#{bin}/numary version"
install: |
bin.install "numary"
nfpms:
- id: packages
package_name: numary
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds:
- numary_linux_amd64
- numary_linux_arm64
homepage: https://formance.com
maintainer: Maxence Maireaux <[email protected]>
formats:
- deb
- rpm
publishers:
- name: fury.io
ids:
- packages
dir: "{{ dir .ArtifactPath }}"
cmd: curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/numary/