-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
62 lines (59 loc) · 1.82 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
# NOTICE: This file is written with the assumption that it will be used in parca-dev/cross-builder.
# - There are paths in this file that are specific to parca-dev/cross-builder and Github Actions.
# - Unfortunately, Goreleaser does not support templating environment variables per build config.
project_name: profile-exporter
dist: ./goreleaser/dist
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/profile-exporter/
id: "profile-exporter"
binary: profile-exporter
# https://goreleaser.com/customization/build/#reproducible-builds
mod_timestamp: '{{ .CommitTimestamp }}'
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
flags:
- -trimpath
- -v
ldflags:
# https://goreleaser.com/customization/build/#reproducible-builds
# {{.CommitDate}} is the date of the commit to make builds reproducible.
- -X main.version={{.Version}} -X main.commit={{.FullCommit}} -X main.date={{.CommitDate}} -X main.goArch={{.Runtime.Goarch}}
archives:
- id: archives
name_template: >-
{{- .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Tag }}-next"
release:
prerelease: auto
# Defaults to empty.
footer: |
## Docker images
`docker pull ghcr.io/polarsignals/profile-exporter:{{ .Tag }}`
## Thanks!
Join our [Discord server](https://discord.com/invite/ZgUpYgpzXy);
Follow us on [Twitter](https://twitter.com/ParcaDev);
Read the [documentation](https://www.parca.dev/docs/overview).
changelog:
sort: asc
use: github
filters:
exclude:
- '^docs:'
- '^test:'