Skip to content

Commit b3baff7

Browse files
committed
update goreleaser
1 parent 8b713be commit b3baff7

File tree

2 files changed

+25
-38
lines changed

2 files changed

+25
-38
lines changed

.goreleaser.yml

Lines changed: 25 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,29 @@
11
# This is an example goreleaser.yaml file with some sane defaults.
22
# Make sure to check the documentation at http://goreleaser.com
3-
before:
4-
hooks:
5-
# you may remove this if you don't use vgo
6-
- go mod download
7-
83
builds:
9-
- env:
10-
- CGO_ENABLED=0
11-
ldflags:
12-
- -s -w -X github.com/bakito/cert-fetcher/cmd.version={{.Version}}
13-
goos:
14-
- linux
15-
- windows
16-
- darwin
17-
goarch:
18-
- 386
19-
- amd64
20-
- arm
21-
- arm64
22-
goarm:
23-
- 5
24-
- 6
25-
- 7
26-
hooks:
27-
post: ./.goreleaser/upx.sh
28-
29-
archive:
30-
replacements:
31-
386: i386
32-
amd64: x86_64
4+
- env:
5+
- CGO_ENABLED=0
6+
ldflags:
7+
- -s -w -X github.com/bakito/cert-fetcher/cmd.version={{.Version}}
8+
goos:
9+
- linux
10+
- windows
11+
- darwin
12+
goarch:
13+
- 386
14+
- amd64
15+
- arm
16+
- arm64
17+
goarm:
18+
- 5
19+
- 6
20+
- 7
21+
hooks:
22+
post: upx {{ .Path }}
23+
archives:
24+
- replacements:
25+
386: i386
26+
amd64: x86_64
3327
checksum:
3428
name_template: 'checksums.txt'
3529
snapshot:
@@ -38,5 +32,5 @@ changelog:
3832
sort: asc
3933
filters:
4034
exclude:
41-
- '^docs:'
42-
- '^test:'
35+
- '^docs:'
36+
- '^test:'

.goreleaser/upx.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)