-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
86 lines (86 loc) · 1.93 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
project_name: jlog
env_files:
github_token: ~/.github_token
before:
hooks:
- go test ./...
- golangci-lint run
builds:
- id: jlog
dir: .
main: ./cmd/jlog/main.go
binary: jlog
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
goamd64:
- v2
- v3
ignore:
- goos: darwin
goarch: arm
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
ldflags:
- "-s -w -X main.version=v{{.Version}} -X main.commit={{.Commit}} -X
main.date={{.CommitDate}} -X main.builtBy=goreleaser"
mod_timestamp: "{{.CommitTimestamp}}"
flags: -trimpath
archives:
- id: jlog
builds:
- jlog
format: binary
wrap_in_directory: false
name_template: |-
jlog_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v2") }}{{ .Amd64 }}{{ end }}
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ slice .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^goreleaser:"
- "^README:"
release:
github:
owner: jrockway
name: json-logs
ids:
- jlog
draft: true
prerelease: auto
name_template: "jlog v{{.Version}}"
disable: false
source:
enabled: false
brews:
- name: jlog
tap:
owner: jrockway
name: homebrew-tap
homepage: "https://github.com/jrockway/json-logs"
description: "Pretty-print JSON logs"
license: Apache-2.0
goarm: 6
goamd64: v2
conflicts:
- jlog
test: |
system "#{bin}/jlog --version"