-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
268 lines (249 loc) · 6.77 KB
/
Copy path.goreleaser.yaml
File metadata and controls
268 lines (249 loc) · 6.77 KB
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
version: 2
project_name: axiom
before:
hooks:
- make man
- make completions
git:
prerelease_suffix: "-"
builds:
- <<: &build_defaults
binary: axiom
main: ./cmd/axiom
env:
- CGO_ENABLED=0
tags:
- osusergo
- netgo
- static_build
flags:
- -buildvcs=false
- -buildmode=pie
- -installsuffix=cgo
- -trimpath
ldflags:
- -s -w -extldflags "-fno-PIC -static -Wl -z now -z relro"
- -X github.com/axiomhq/pkg/version.release={{ .Version }}
- -X github.com/axiomhq/pkg/version.revision={{ .ShortCommit }}
- -X github.com/axiomhq/pkg/version.buildDate={{ .CommitDate }}
- -X github.com/axiomhq/pkg/version.buildUser=goreleaser
mod_timestamp: "{{ .CommitTimestamp }}"
id: darwin
goos:
- darwin
goarch:
- amd64
- arm64
- <<: *build_defaults
id: linux
goos:
- linux
goarch:
- amd64
- arm64
- <<: *build_defaults
flags:
- -buildvcs=false
- -buildmode=exe
- -installsuffix=cgo
- -trimpath
id: linux-no-pie
goos:
- linux
goarch:
- arm
- 386
goarm:
- 6
- 7
- <<: *build_defaults
flags:
- -buildvcs=false
- -buildmode=exe
- -installsuffix=cgo
- -trimpath
id: docker
goos:
- linux
goarch:
- amd64
- <<: *build_defaults
id: windows
goos:
- windows
goarch:
- amd64
- 386
archives:
- <<: &archive_defaults
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
id: nix
ids:
- darwin
- linux
- linux-no-pie
wrap_in_directory: true
formats:
- tar.gz
files:
- LICENSE
- README.md
- man/{{ .ProjectName }}*.1
- completions/*
- <<: *archive_defaults
id: homebrew
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}_homebrew"
ids:
- darwin
- linux
wrap_in_directory: false
formats:
- tar.gz
files:
- LICENSE
- README.md
- man/{{ .ProjectName }}*.1
- completions/*
- <<: *archive_defaults
id: windows
ids:
- windows
wrap_in_directory: false
formats:
- zip
checksum:
name_template: checksums.txt
snapshot:
version_template: "{{ .Tag }}-next"
changelog:
use: github-native
milestones:
- repo:
owner: axiomhq
name: cli
close: true
fail_on_error: false
release:
github:
owner: axiomhq
name: cli
prerelease: auto
name_template: Axiom CLI v{{ .Version }}
homebrew_casks:
- name: axiom
description: Powerful log analytics from the comfort of your command-line
homepage: https://axiom.co
ids:
- homebrew
repository:
owner: axiomhq
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TOKEN }}"
commit_author:
name: axiom-automation
email: hello@axiom.co
skip_upload: auto
manpages:
- "man/axiom.1"
- "man/axiom-annotation.1"
- "man/axiom-annotation-create.1"
- "man/axiom-annotation-delete.1"
- "man/axiom-annotation-list.1"
- "man/axiom-annotation-update.1"
- "man/axiom-auth.1"
- "man/axiom-auth-login.1"
- "man/axiom-auth-logout.1"
- "man/axiom-auth-select.1"
- "man/axiom-auth-status.1"
- "man/axiom-auth-switch-org.1"
- "man/axiom-auth-update-token.1"
- "man/axiom-completion.1"
- "man/axiom-completion-bash.1"
- "man/axiom-completion-fish.1"
- "man/axiom-completion-powershell.1"
- "man/axiom-completion-zsh.1"
- "man/axiom-config.1"
- "man/axiom-config-edit.1"
- "man/axiom-config-export.1"
- "man/axiom-config-get.1"
- "man/axiom-config-set.1"
- "man/axiom-dataset.1"
- "man/axiom-dataset-create.1"
- "man/axiom-dataset-delete.1"
- "man/axiom-dataset-list.1"
- "man/axiom-dataset-trim.1"
- "man/axiom-dataset-update.1"
- "man/axiom-ingest.1"
- "man/axiom-query.1"
- "man/axiom-stream.1"
- "man/axiom-version.1"
- "man/axiom-web.1"
completions:
bash: completions/axiom.bash
zsh: completions/_axiom
fish: completions/axiom.fish
hooks:
post:
install: |
if OS.mac?
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/{{ .ProjectName }}"]
end
dockers:
- ids:
- docker
image_templates:
- "docker.io/axiomhq/cli:{{ .Major }}"
- "docker.io/axiomhq/cli:{{ .Major }}.{{ .Minor }}"
- "docker.io/axiomhq/cli:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "docker.io/axiomhq/cli:latest"
- "ghcr.io/axiomhq/cli:{{ .Major }}"
- "ghcr.io/axiomhq/cli:{{ .Major }}.{{ .Minor }}"
- "ghcr.io/axiomhq/cli:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "ghcr.io/axiomhq/cli:latest"
build_flag_templates:
- --platform=linux/amd64
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://axiom.co
- --label=org.opencontainers.image.source=https://github.com/axiomhq/cli
- --label=org.opencontainers.image.documentation=https://docs.axiom.co/reference/CLI
- --label=org.opencontainers.image.licenses=MIT
- --label=org.opencontainers.image.author=Axiom, Inc. <info@axiom.co>
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.vendor=Axiom, Inc.
aurs:
- name: axiom-bin
ids:
- nix
homepage: https://axiom.co
description: Powerful log analytics from the comfort of your command-line
maintainers:
- "axiom <hello@axiom.co>"
contributors:
- "axiom <hello@axiom.co>"
license: MIT
private_key: "{{ .Env.AUR_KEY }}"
git_url: ssh://aur@aur.archlinux.org/axiom-bin.git
skip_upload: auto
provides:
- axiom-bin
conflicts:
- axiom-bin
- axiom-git
commit_author:
name: axiomautomation
email: hello@axiom.co
package: |
case "$CARCH" in
aarch64) _arch="arm64" ;;
armv7h) _arch="armv7" ;;
i686) _arch="386" ;;
x86_64) _arch="amd64" ;;
*) echo "Unsupported architecture: $CARCH" >&2; exit 1 ;;
esac
install -Dm755 "./axiom_${pkgver}_linux_${_arch}/axiom" "${pkgdir}/usr/bin/axiom"
if [[ -d "./axiom_${pkgver}_linux_${_arch}/man" ]]; then
install -Dm644 "./axiom_${pkgver}_linux_${_arch}/man"/*.1 -t "${pkgdir}/usr/share/man/man1/"
fi