-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
32 lines (32 loc) · 1.12 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
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
ldflags:
- -s -w -X "github.com/loopholelabs/scale-cli/version.GitCommit={{.FullCommit}}" -X "github.com/loopholelabs/scale-cli/version.GoVersion={{.Env.GO_VERSION}}" -X "github.com/loopholelabs/scale-cli/version.Platform={{.Env.GO_PLATFORM}}" -X "github.com/loopholelabs/scale-cli/version.Version={{.Tag}}" -X "github.com/loopholelabs/scale-cli/version.BuildDate={{.Env.BUILD_DATE}}" -X "github.com/loopholelabs/scale-cli/analytics/machine.ApplicationID={{.Env.ANALYTICS_APPLICATION_ID}}" -X "github.com/loopholelabs/scale-cli/analytics/posthog.APIKey={{.Env.POSTHOG_API_KEY}}" -X "github.com/loopholelabs/scale-cli/analytics/posthog.APIHost={{.Env.POSTHOG_API_HOST}}"
main: ./cmd
archives:
- files:
- none*
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-snapshot"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"