forked from hidracloud/hidra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
58 lines (56 loc) · 1.56 KB
/
.goreleaser.yaml
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
before:
hooks:
- go mod tidy
- go mod vendor
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
ldflags:
- -X github.com/hidracloud/hidra/v3/internal/misc.Version={{.Version}} -X github.com/hidracloud/hidra/v3/internal/misc.Commit={{.Commit}} -X github.com/hidracloud/hidra/v3/internal/misc.BuildDate={{.Date}} -X github.com/hidracloud/hidra/v3/internal/misc.Branch={{.Branch}}
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
nfpms:
- id: packages
package_name: hidra
file_name_template: "{{ .ConventionalFileName }}"
vendor: "Hidra Team"
homepage: https://hidra.cloud
maintainer: "José Carlos <[email protected]>"
description: "Hidra is a tool for monitoring your services easily."
license: "GPL-3.0"
formats:
- deb
- rpm
- apk
dependencies:
- chromium
scripts:
postinstall: ./scripts/postinstall.sh
contents:
- src: ./configs/hidra/exporter.yml
dst: /etc/hidra_exporter/config.yml
type: config|noreplace
- src: ./configs/systemd/hidra_exporter.service
dst: /etc/systemd/system/hidra_exporter.service
type: config
- src: ./configs/hidra/samples/http_test_google.yml
dst: /etc/hidra_exporter/samples/http_demo_sample.yml.disabled
type: config|noreplace
publishers:
- name: fury.io
ids:
- packages
disable: "{{ if .IsNightly }}true{{ end }}"
dir: "{{ dir .ArtifactPath }}"
cmd: curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/hidracloud/