forked from CircleCI-Public/circleci-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
30 lines (27 loc) · 864 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
project_name: circleci-cli
git:
short_hash: true
archive:
wrap_in_directory: true
format_overrides:
- goos: windows
format: zip
files:
- client/LICENSE
- md_docs/LICENSE
builds:
- binary: circleci
env:
- CGO_ENABLED=0
goos:
- windows
- darwin
- linux
goarch:
- amd64
ldflags:
# -s Omit the symbol table and debug information.
# -w Omit the DWARF symbol table.
# These are the defaults specified by goreleaser:
# https://github.com/goreleaser/goreleaser/blob/682c811106f56ffe06c4212de546aec62161fb9d/internal/builders/golang/build.go#L46
- -s -w -X github.com/CircleCI-Public/circleci-cli/version.Version={{.Version}} -X github.com/CircleCI-Public/circleci-cli/version.Commit={{.Commit}} -X github.com/CircleCI-Public/circleci-cli/cmd.PackageManager=release