-
Notifications
You must be signed in to change notification settings - Fork 24
/
.goreleaser.yaml
66 lines (65 loc) · 1.93 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
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
- 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"
release:
mode: keep-existing # keep existing release notes generated by release-please
changelog:
skip: true # delegate this to release-please
# RPM (yum) and deb (apt) packages
nfpms:
- vendor: Grafana Labs Inc
homepage: https://grafana.com/products/cloud/features/#synthetic-monitoring
maintainer: Grafana Labs <[email protected]>
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}}{{ with .Amd64 }}_{{ . }}{{ end}}/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 }}'