forked from dmachard/go-dnscollector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
47 lines (38 loc) · 945 Bytes
/
.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
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X github.com/prometheus/common/version.Version={{.Version}}
- -X github.com/prometheus/common/version.Revision={{.Commit}}
- -X github.com/prometheus/common/version.Branch={{.Branch}}
- -X github.com/prometheus/common/version.BuildDate={{.Date}}
goos:
- windows
- linux
- darwin
- freebsd
goarch:
- amd64
- arm64
# Build reproducible
mod_timestamp: '{{ .CommitTimestamp }}'
# Binary name.
binary: go-dnscollector
archives:
- id: zipformat
format: zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
files:
- config.yml
- id: targzformat
format: tar.gz
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
files:
- config.yml
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
algorithm: sha256