github.com/grafana/synthetic-monitoring-agent@v0.64.2/.goreleaser.yaml (about) 1 before: 2 hooks: 3 # You may remove this if you don't use go modules. 4 # - go mod tidy 5 # you may remove this if you don't need go generate 6 # - go generate ./... 7 - 'true' 8 builds: 9 - main: cmd/synthetic-monitoring-agent 10 goos: 11 - linux 12 - darwin 13 goarch: 14 - amd64 15 - arm64 16 ignore: 17 - goos: darwin 18 goarch: arm 19 gobinary: scripts/package/goreleaser-build 20 #sboms: 21 # - artifacts: archive 22 archives: 23 - format: zip 24 files: 25 - "CHANGELOG.md" 26 - "LICENSE" 27 - "README.md" 28 - src: "{{dir .ArtifactPath}}/k6-v1" 29 dst: k6-v1 30 strip_parent: true 31 - src: "{{dir .ArtifactPath}}/k6-v2" 32 dst: k6-v2 33 strip_parent: true 34 checksum: 35 name_template: 'checksums.txt' 36 snapshot: 37 name_template: "{{ incpatch .Version }}-next" 38 release: 39 mode: keep-existing # keep existing release notes generated by release-please 40 changelog: 41 skip: true # delegate this to release-please 42 # RPM (yum) and deb (apt) packages 43 nfpms: 44 - vendor: Grafana Labs Inc 45 homepage: https://grafana.com/products/cloud/features/#synthetic-monitoring 46 maintainer: Grafana Labs <support@grafana.com> 47 description: Synthetic Monitoring Agent 48 license: Apache2.0 49 formats: 50 - deb 51 - rpm 52 contents: 53 - src: ./scripts/package/config/systemd/synthetic-monitoring-agent.conf 54 dst: /etc/synthetic-monitoring/synthetic-monitoring-agent.conf 55 type: 'config|noreplace' 56 - src: ./scripts/package/config/systemd/synthetic-monitoring-agent.service 57 dst: /etc/systemd/system/synthetic-monitoring-agent.service 58 59 - src: ./dist/synthetic-monitoring-agent_{{.Os}}_{{.Arch}}{{ with .Amd64 }}_{{ . }}{{ end}}/k6-v1 60 dst: /usr/libexec/sm-k6/k6-v1 61 - src: ./dist/synthetic-monitoring-agent_{{.Os}}_{{.Arch}}{{ with .Amd64 }}_{{ . }}{{ end}}/k6-v2 62 dst: /usr/libexec/sm-k6/k6-v2 63 rpm: 64 signature: 65 # Also set ${NFPM_DEFAULT_PASSPHRASE} 66 key_file: '{{ .Env.NFPM_SIGNING_KEY_FILE }}' 67 deb: 68 signature: 69 # Also set ${NFPM_DEFAULT_PASSPHRASE} 70 key_file: '{{ .Env.NFPM_SIGNING_KEY_FILE }}'