forked from grafana/synthetic-monitoring-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
71 lines (70 loc) · 1.9 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
59
60
61
62
63
64
65
66
67
68
69
70
71
before:
hooks:
# You may remove this if you don't use go modules.
# - go mod tidy
# you may remove this if you don't need go generate
# - go generate ./...
- 'true'
builds:
- main: cmd/synthetic-monitoring-agent
goos:
- linux
- darwin
goarch:
- amd64
- arm
- arm64
ignore:
- goos: darwin
goarch: arm
gobinary: scripts/package/goreleaser-build
#sboms:
# - artifacts: archive
archives:
- format: zip
files:
- "CHANGELOG.md"
- "LICENSE"
- "README.md"
- src: "{{dir .ArtifactPath}}/k6"
dst: sm-k6
strip_parent: true
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^[Dd]ocs:'
- '^[Tt]est:'
- '^[Cc]hore\(\w+\):'
- '^[Cc]hore:'
# RPM (yum) and deb (apt) packages
nfpms:
- vendor: Grafana Labs Inc
homepage: https://grafana.com/products/cloud/features/#synthetic-monitoring
maintainer: Grafana Labs <support@grafana.com>
description: Synthetic Monitoring Agent
license: Apache2.0
formats:
- deb
- rpm
contents:
- src: ./scripts/package/config/systemd/synthetic-monitoring-agent.conf
dst: /etc/synthetic-monitoring/synthetic-monitoring-agent.conf
type: 'config|noreplace'
- src: ./scripts/package/config/systemd/synthetic-monitoring-agent.service
dst: /etc/systemd/system/synthetic-monitoring-agent.service
# Copy k6 as sm-k6 to prevent clashing with k6 if it's installed.
- src: ./dist/synthetic-monitoring-agent_{{.Os}}_{{.Arch}}/k6
dst: /usr/bin/sm-k6
rpm:
signature:
# Also set ${NFPM_DEFAULT_PASSPHRASE}
key_file: '{{ .Env.NFPM_SIGNING_KEY_FILE }}'
deb:
signature:
# Also set ${NFPM_DEFAULT_PASSPHRASE}
key_file: '{{ .Env.NFPM_SIGNING_KEY_FILE }}'