-
Notifications
You must be signed in to change notification settings - Fork 23
/
.goreleaser.yml
90 lines (83 loc) · 2.2 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
before:
hooks:
- mkdir -p ./tmp
- curl -fL https://github.com/observiq/stanza-plugins/releases/latest/download/stanza-plugins.tar.gz -o ./tmp/stanza-plugins.tar.gz
- curl -fL https://github.com/observiq/stanza-plugins/releases/latest/download/stanza-plugins.zip -o ./tmp/stanza-plugins.zip
- curl -fL https://github.com/observiq/stanza-plugins/releases/latest/download/version.json -o ./tmp/version.json
- tar -xf ./tmp/stanza-plugins.tar.gz -C ./tmp
builds:
- id: stanza
binary: stanza
main: ./cmd/stanza
env:
- CGO_ENABLED=0
flags: -tags=timetzdata
mod_timestamp: "{{ .CommitTimestamp }}"
goos:
- windows
- linux
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
ldflags:
- -X github.com/observiq/stanza/version.GitTag={{ .Tag }}
- -X github.com/observiq/stanza/version.GitCommit={{ .FullCommit }}
no_unique_dist_dir: false
archives:
- builds:
- stanza
# skip archiving as tar.gz / zip
format: binary
name_template: "stanza_{{ .Os }}_{{ .Arch }}"
nfpms:
- package_name: stanza
vendor: observIQ, Inc
maintainer: observIQ <[email protected]>
license: Apache 2.0
bindir: /usr/bin
formats:
- rpm
- deb
contents:
- src: tmp/plugins
dst: /opt/observiq/stanza/plugins
- src: build/package/config.yaml
dst: /opt/observiq/stanza/config.yaml
file_info:
mode: 0640
scripts:
preinstall: './build/package/pre.sh'
postinstall: ./build/package/post.sh
checksum:
name_template: "{{ .ProjectName }}-v{{ .Version }}-SHA256SUMS"
algorithm: sha256
release:
github:
owner: observIQ
name: stanza
extra_files:
- glob: scripts/*install*
- glob: stanza*.msi
- glob: ./tmp/stanza-plugins.*
- glob: ./tmp/version.json
changelog:
skip: false
use: github
sort: asc
groups:
- title: "New Features"
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: "Bug Fixes"
regexp: "^.*fix[(\\w)]*:+.*$"
order: 10
- title: "Dependencies"
regexp: "^.*deps[(\\w)]*:+.*$"
order: 30
- title: Other
order: 999
dist: artifacts