forked from cisco-open/fsoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
42 lines (40 loc) · 1.13 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
33
34
35
36
37
38
39
40
41
42
# GoRelease Build Configuration
# Refer https://goreleaser.com/customization/templates template variables.
# Refer https://goreleaser.com/customization/ for the fields.
project_name: fsoc
dist: builds
builds:
- id: fsoc-binaries
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
binary: fsoc-{{.Os}}-{{.Arch}}
no_unique_dist_dir: true
ldflags:
- -s
- -w
- -X {{ .Env.VERSION_PKG_PATH }}.defVersion={{ .Version }}
- -X {{ .Env.VERSION_PKG_PATH }}.defGitHash={{ .Env.GIT_HASH }}
- -X {{ .Env.VERSION_PKG_PATH }}.defGitBranch={{ .Env.GIT_BRANCH }}
- -X {{ .Env.VERSION_PKG_PATH }}.defBuildHost={{ .Env.BUILD_HOST }}
- -X {{ .Env.VERSION_PKG_PATH }}.defIsDev={{ .Env.BUILD_IS_DEV }}
- -X {{ .Env.VERSION_PKG_PATH }}.defGitDirty={{ .Env.GIT_DIRTY }}
- -X {{ .Env.VERSION_PKG_PATH }}.defGitTimestamp={{ .Env.GIT_TIMESTAMP }}
- -X {{ .Env.VERSION_PKG_PATH }}.defBuildTimestamp={{ .Env.BUILD_TIMESTAMP }}
flags:
- -trimpath
env:
- CGO_ENABLED=0
archives:
- id: fsoc-archives
name_template: 'fsoc-{{ .Os }}-{{ .Arch }}'
format: binary
builds:
- fsoc-binaries