forked from arriven/db1000n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
41 lines (41 loc) · 1021 Bytes
/
.goreleaser.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
project_name: db1000n
builds:
- id: db1000n
env:
- CGO_ENABLED=0
dir: .
main: .
goos:
- linux
- windows
- darwin
- freebsd
- netbsd
- openbsd
- dragonfly
- aix
- illumos
- solaris
goarch:
- amd64
- arm64
- arm
- "386"
flags:
- -tags=encrypted
ldflags:
- -s -w
- -extldflags "-static"
- -X github.com/Arriven/db1000n/src/utils/ota.Version={{ .Version }}
- -X github.com/Arriven/db1000n/src/utils.EncryptionKeys={{- .Env.ENCRYPTION_KEYS }}
- -X github.com/Arriven/db1000n/src/job/config.DefaultConfig={{- .Env.DEFAULT_CONFIG_VALUE }}
- -X github.com/Arriven/db1000n/src/utils/metrics.PushGatewayCA={{- .Env.CA_PATH_VALUE }}
- -X github.com/Arriven/db1000n/src/utils/metrics.BasicAuth={{- .Env.PROMETHEUS_BASIC_AUTH }}
archives:
- id: default
builds:
- db1000n
format: tar.gz
format_overrides:
- goos: windows
format: zip