-
Notifications
You must be signed in to change notification settings - Fork 101
/
.goreleaser.yml
124 lines (117 loc) · 2.88 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
version: 2
project_name: ledger
includes:
- from_url:
url: https://raw.githubusercontent.com/formancehq/earthly/refs/heads/main/.goreleaser.default.yaml
builds:
- binary: ledger
id: ledger
ldflags:
- -X github.com/formancehq/ledger/cmd.BuildDate={{ .Date }}
- -X github.com/formancehq/ledger/cmd.Version=v{{ .Version }}
- -X github.com/formancehq/ledger/cmd.Commit={{ .ShortCommit }}
- -extldflags "-static"
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
- binary: benchmarks
id: benchmarks
ldflags:
- -extldflags "-static"
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
command: test
dir: test/performance
no_main_check: true
tags:
- it
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:
- ledger
- benchmarks
format: tar.gz
name_template: "{{.ProjectName}}_{{.Os}}-{{.Arch}}"
nfpms:
- id: ledger
package_name: ledger
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds:
- ledger
homepage: https://formance.com
maintainer: Maxence Maireaux <maxence@formance.com>
formats:
- deb
- rpm
- id: benchmarks
package_name: ledger-benchmarks
file_name_template: "{{ .ProjectName }}_benchmarks_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds:
- benchmarks
homepage: https://formance.com
maintainer: Maxence Maireaux <maxence@formance.com>
formats:
- deb
- rpm
publishers:
- name: fury.io
ids:
- ledger
- benchmarks
dir: "{{ dir .ArtifactPath }}"
cmd: curl --http1.1 -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/ledger/
brews:
- name: ledger
alternative_names:
- ledger@{{ .Major }}
repository:
owner: formancehq
name: homebrew-tap
pull_request:
enabled: true
base:
owner: formancehq
name: homebrew-tap
branch: main
directory: Formula
homepage: https://formance.com
skip_upload: 'false'
test: |
system "#{bin}/ledger version"
install: |
bin.install "ledger"
- name: ledger-benchmarks
alternative_names:
- ledger-benchmarks@{{ .Major }}
repository:
owner: formancehq
name: homebrew-tap
pull_request:
enabled: true
base:
owner: formancehq
name: homebrew-tap
branch: main
directory: Formula
homepage: https://formance.com
skip_upload: 'false'
install: |
bin.install "ledger-benchmarks"