Skip to content

Commit 3e8c088

Browse files
committed
Update goreleaser config
1 parent d6acbbd commit 3e8c088

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.goreleaser.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,13 @@ project_name: mach-composer-plugin-commercetools
33
builds:
44
- id: "mach-composer-plugin"
55
main: ./main.go
6-
binary: "bin/{{ .ProjectName }}"
6+
binary: "{{ .ProjectName }}_v{{ .Version }}"
77
flags:
88
- -trimpath
9-
- -tags=netgo
109
env:
1110
- CGO_ENABLED=0
12-
asmflags:
13-
- all=-trimpath={{.Env.GOPATH}}
14-
gcflags:
15-
- all=-trimpath={{.Env.GOPATH}}
16-
ldflags: |
17-
-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -extldflags '-static'
11+
ldflags:
12+
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
1813
goos:
1914
- windows
2015
- linux
@@ -38,7 +33,7 @@ changelog:
3833

3934
archives:
4035
- id: "mach-composer-plugin"
41-
name_template: "{{ .ProjectName }}-{{.Version}}-{{.Os}}-{{.Arch}}{{ if .Arm }}v{{.Arm }}{{ end }}"
42-
format: tar.gz
36+
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
37+
format: zip
4338
files:
4439
- LICENSE

0 commit comments

Comments
 (0)