-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yaml
46 lines (46 loc) · 1.26 KB
/
.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
42
43
44
45
46
# Sources:
# https://github.com/replicatedhq/outdated/blob/v0.3.3/deploy/.goreleaser.yaml
project_name: kubectl-bd-xray
release:
github:
owner: blackducksoftware
name: kubectl-bd-xray
builds:
- id: bd-xray
goos:
- linux
- windows
- darwin
goarch:
- amd64
- "386"
env:
- CGO_ENABLED=0
main: cmd/bd-xray/main.go
ldflags: -s -w
-X github.com/blackducksoftware/kubectl-bd-xray/pkg/bd-xray.semver={{ .Version }}
-X github.com/blackducksoftware/kubectl-bd-xray/pkg/bd-xray.commit={{ .Commit }}
-X github.com/blackducksoftware/kubectl-bd-xray/pkg/bd-xray.date={{ .Date }}
-extldflags "-static"
flags: -tags netgo -installsuffix netgo
binary: bd-xray
hooks: {}
archives:
- id: bd-xray
builds:
- bd-xray
format: tar.gz
format_overrides:
- goos: windows
format: zip
# name_template: '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{.Arm }}{{ end }}-{{ .Major }}.{{ .Minor }}.{{ .Patch }}'
name_template: '{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
files:
- licence*
- LICENCE*
- license*
- LICENSE*
- readme*
- README*
- changelog*
- CHANGELOG*