forked from Mirantis/launchpad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.release.yml
32 lines (32 loc) · 1018 Bytes
/
.goreleaser.release.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
#
# GOReleaser instructions for build
#
# We use only the build components of goreleaser because;
# 1. we need to use digicert to sign, no option here
# 2. we would need the pro version to use the prebuilt
# option to get the signing and packaging features
#
project_name: launchpad
version: 2
builds:
- env:
# goreleaser does not work with CGO, it could also complicate CI/CD
- CGO_ENABLED=0
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- -X github.com/Mirantis/mcc/version.GitCommit={{ .FullCommit }}
- -X github.com/Mirantis/mcc/version.Version={{ .Version }}
# if segment analytics is to be active, set an env variable for the token
- -X github.com/Mirantis/mcc/pkg/analytics.SegmentToken={{ .Env.SEGMENT_TOKEN }}
goos:
- linux
- darwin
- windows
- freebsd
goarch:
- amd64
- arm64
no_unique_dist_dir: true
binary: "release/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}_{{ .Version }}"