-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.goreleaser.yml
58 lines (58 loc) · 1.46 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
# This project uses https://goreleaser.com to handle its releases.
#
# Dry-run of the goreleaser part:
# rm -rf dist && goreleaser release --snapshot --skip-publish
#
# A full release is done via `make cutarelease`.
before:
hooks:
- go mod tidy
builds:
- id: ecslog
main: ./cmd/ecslog
binary: ecslog
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
# These mod_timestamp and ldflags are specified for reproducible builds,
# i.e. no changing temporal info in the built binaries.
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- "-s -w -X main.commit={{.Commit}}"
archives:
- format_overrides:
- goos: windows
format: zip
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
replacements:
darwin: macos
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
brews:
- name: ecslog
tap:
owner: trentm
name: homebrew-tap
commit_author:
name: goreleaser
email: trentm+goreleaser@gmail.com
folder: Formula
homepage: https://github.com/trentm/go-ecslog
description: "Pretty rendering of ecs-logging logs"
license: "Apache-2.0"
# "auto" here means "do not push the formula change if this is a pre-release"
skip_upload: auto
install: |
bin.install "ecslog"
test: |
system "#{bin}/ecslog --version"