Skip to content

Commit 0b289be

Browse files
committed
update goreleaser
1 parent dbc7d80 commit 0b289be

File tree

1 file changed

+32
-25
lines changed

1 file changed

+32
-25
lines changed

.goreleaser.yml

Lines changed: 32 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,35 @@
1-
# This is an example goreleaser.yaml file with some sane defaults.
2-
# 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-
# you may remove this if you don't need go generate
8-
- go generate ./...
91
builds:
10-
- env:
11-
- CGO_ENABLED=0
12-
archives:
13-
- replacements:
14-
darwin: Darwin
15-
linux: Linux
16-
windows: Windows
17-
386: i386
18-
amd64: x86_64
2+
-
3+
binary: kurun
4+
env:
5+
- CGO_ENABLED=0
6+
ldflags: "-s -w -X main.version={{ .Version }} -X main.commitHash={{ .ShortCommit }} -X main.buildDate={{ .Date }}"
7+
goos:
8+
- linux
9+
- darwin
10+
- windows
11+
goarch:
12+
- amd64
13+
14+
archive:
15+
name_template: "kurun_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
16+
format_overrides:
17+
-
18+
goos: windows
19+
format: zip
20+
1921
checksum:
20-
name_template: 'checksums.txt'
21-
snapshot:
22-
name_template: "{{ .Tag }}-next"
22+
name_template: "kurun_checksums.txt"
23+
2324
changelog:
24-
sort: asc
25-
filters:
26-
exclude:
27-
- '^docs:'
28-
- '^test:'
25+
skip: true
26+
27+
brew:
28+
github:
29+
owner: banzaicloud
30+
name: homebrew-tap
31+
folder: Formula
32+
homepage: https://banzaicloud.com/blog/kurun
33+
description: Run main.go in Kubernetes with one command
34+
test: |
35+
system "#{bin}/kurun --version"

0 commit comments

Comments
 (0)