forked from stripe/stripe-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
134 lines (134 loc) · 3.15 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
env:
- GO111MODULE=on
before:
hooks:
- go mod download
- go generate ./...
project_name: stripe
builds:
- id: stripe-darwin
ldflags:
- -s -w -X github.com/stripe/stripe-cli/pkg/version.Version={{.Version}}
binary: stripe
env:
- CGO_ENABLED=1
- CC=o64-clang
- CXX=o64-clang++
main: ./cmd/stripe/main.go
goos:
- darwin
goarch:
- amd64
- id: stripe-linux
ldflags:
- -s -w -X github.com/stripe/stripe-cli/pkg/version.Version={{.Version}}
binary: stripe
env:
- CGO_ENABLED=0
main: ./cmd/stripe/main.go
goos:
- linux
goarch:
- amd64
- id: stripe-windows
ldflags:
- -s -w -X github.com/stripe/stripe-cli/pkg/version.Version={{.Version}}
binary: stripe
env:
- CGO_ENABLED=1
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
main: ./cmd/stripe/main.go
goos:
- windows
goarch:
- amd64
- 386
archives:
-
replacements:
darwin: mac-os
linux: linux
windows: windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
files:
- none*
checksum:
name_template: '{{ .ProjectName }}-checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
nfpms:
-
builds:
- stripe-linux
vendor: Stripe
homepage: https://stripe.com
maintainer: Stripe <[email protected]>
description: Stripe CLI utility
license: Apache 2.0
formats:
- deb
- rpm
brews:
-
github:
owner: stripe
name: homebrew-stripe-cli
commit_author:
name: stripe-ci
email: [email protected]
homepage: https://stripe.com
description: Stripe CLI utility
install: |
bin.install "stripe"
rm Dir["#{bin}/{stripe-completion.bash,stripe-completion.zsh}"]
system bin/"stripe", "completion", "--shell", "bash"
system bin/"stripe", "completion", "--shell", "zsh"
bash_completion.install "stripe-completion.bash"
zsh_completion.install "stripe-completion.zsh"
(zsh_completion/"_stripe").write <<~EOS
#compdef stripe
_stripe () {
local e
e=$(dirname ${funcsourcetrace[1]%:*})/stripe-completion.zsh
if [[ -f $e ]]; then source $e; fi
}
EOS
scoop:
bucket:
owner: stripe
name: scoop-stripe-cli
commit_author:
name: stripe-ci
email: [email protected]
homepage: https://stripe.com
description: Stripe CLI utility
license: Apache 2.0
dockers:
- goos: linux
goarch: amd64
binaries:
- stripe
builds:
- stripe-linux
image_templates:
- "stripe/stripe-cli:latest"
- "stripe/stripe-cli:{{ .Tag }}"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=repository=https://github.com/stripe/stripe-cli"
- "--label=homepage=https://stripe.com"