-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.darwin.yaml
49 lines (43 loc) · 1.49 KB
/
.goreleaser.darwin.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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
project_name: spectated
before:
hooks:
- go mod tidy
release:
github:
owner: spectate
name: agent
builds:
- id: "spectated"
main: "./main/main.go"
binary: "spectated"
env:
- CGO_ENABLED=1
- ENVIRONMENT=production
- API_BASE_URL=https://api.spectate.net/agent-api
- LOG_LEVEL=info
- SENTRY_DSN={{ .Env.SENTRY_DSN }}
goos:
- darwin
goarch:
- amd64
- arm64
ldflags:
- -X 'github.com/spectate/agent/internal/version.Version={{.Version}}'
- -X 'github.com/spectate/agent/internal/version.BuildDate={{.Date}}'
- -X 'github.com/spectate/agent/internal/version.Environment={{ .Env.ENVIRONMENT }}'
- -X 'github.com/spectate/agent/internal/logger.LogLevel={{ .Env.LOG_LEVEL }}'
- -X 'github.com/spectate/agent/internal/http.ApiBaseUrl={{ .Env.API_BASE_URL }}'
- -X 'github.com/spectate/agent/pkg/telemetry.SentryDsn={{ .Env.SENTRY_DSN }}'
universal_binaries:
- replace: false
archives:
- id: binary
format: binary
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
- id: archive
format: tar.gz
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_darwin_checksums.txt'