-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
49 lines (49 loc) · 1.73 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
43
44
45
46
47
48
49
project_name: kubectl-jfs-plugin
env:
- GO111MODULE=on
- CGO_ENABLED=0
- REVISIONDATE={{ .Env.REVISIONDATE }}
before:
hooks:
- go mod download
builds:
- id: kubectl-jfs-linux-amd64
ldflags: -s -w -X github.com/juicedata/kubectl-jfs-plugin/pkg.version={{.Version}} -X github.com/juicedata/kubectl-jfs-plugin/pkg.gitCommit={{.ShortCommit}} -X github.com/juicedata/kubectl-jfs-plugin/pkg.buildDate={{.Env.REVISIONDATE}}
main: ./cmd
goos:
- linux
goarch:
- amd64
- id: kubectl-jfs-linux-arm64
ldflags: -s -w -X github.com/juicedata/kubectl-jfs-plugin/pkg.version={{.Version}} -X github.com/juicedata/kubectl-jfs-plugin/pkg.gitCommit={{.ShortCommit}} -X github.com/juicedata/kubectl-jfs-plugin/pkg.buildDate={{.Env.REVISIONDATE}}
main: ./cmd
goos:
- linux
goarch:
- arm64
- id: kubectl-jfs-darwin-amd64
ldflags: -s -w -X github.com/juicedata/kubectl-jfs-plugin/pkg.version={{.Version}} -X github.com/juicedata/kubectl-jfs-plugin/pkg.gitCommit={{.ShortCommit}} -X github.com/juicedata/kubectl-jfs-plugin/pkg.buildDate={{.Env.REVISIONDATE}}
main: ./cmd
goos:
- darwin
goarch:
- amd64
- id: kubectl-jfs-darwin-arm64
ldflags: -s -w -X github.com/juicedata/kubectl-jfs-plugin/pkg.version={{.Version}} -X github.com/juicedata/kubectl-jfs-plugin/pkg.gitCommit={{.ShortCommit}} -X github.com/juicedata/kubectl-jfs-plugin/pkg.buildDate={{.Env.REVISIONDATE}}
main: ./cmd
goos:
- darwin
goarch:
- arm64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
archives:
- name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"