-
-
Notifications
You must be signed in to change notification settings - Fork 96
/
.goreleaser.yml
58 lines (52 loc) · 1.38 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
project_name: ledger
monorepo:
tag_prefix: v
dir: ./
includes:
- from_file:
path: ./../../.goreleaser.default.yaml
builds:
- binary: ledger
id: ledger
ldflags:
- -X github.com/formancehq/ledger/cmd.BuildDate={{ .Date }}
- -X github.com/formancehq/ledger/cmd.Version={{ .Version }}
- -X github.com/formancehq/ledger/cmd.Commit={{ .ShortCommit }}
- -X github.com/formancehq/ledger/cmd.DefaultSegmentWriteKey={{ .Env.SEGMENT_WRITE_KEY }}
- -extldflags "-static"
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
release:
prerelease: auto
footer: |
## What to do next?
- Read the [documentation](https://docs.formance.com/)
- Join our [Slack server](https://formance.com/slack)
archives:
- id: "{{.ProjectName}}"
builds:
- gateway
format: tar.gz
name_template: "{{.ProjectName}}_{{.Os}}-{{.Arch}}"
nfpms:
- id: packages
package_name: ledger
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds:
- ledger
homepage: https://formance.com
maintainer: Maxence Maireaux <[email protected]>
formats:
- deb
- rpm
publishers:
- name: fury.io
ids:
- packages
dir: "{{ dir .ArtifactPath }}"
cmd: curl --http1.1 -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/ledger/