-
Notifications
You must be signed in to change notification settings - Fork 33
/
.goreleaser.yaml
79 lines (73 loc) · 2.13 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
before:
hooks:
- go mod tidy
builds:
- id: "kubectl-fzf-server"
main: cmd/kubectl-fzf-server/main.go
binary: kubectl-fzf-server
env:
- CGO_ENABLED=0
ldflags:
- -X 'main.goVersion={{.Env.GO_VERSION}}' -X main.gitCommit={{.Commit}} -X main.gitBranch={{.Tag}} -X main.buildDate={{.Date}} -X main.version={{.Version}}
goos:
- darwin
- linux
goarch:
- amd64
- id: "kubectl-fzf-completion"
main: cmd/kubectl-fzf-completion/main.go
binary: kubectl-fzf-completion
env:
- CGO_ENABLED=0
ldflags:
- -X 'main.goVersion={{.Env.GO_VERSION}}' -X main.gitCommit={{.Commit}} -X main.gitBranch={{.Tag}} -X main.buildDate={{.Date}} -X main.version={{.Version}}
goos:
- darwin
- linux
goarch:
- amd64
archives:
- id: kubectl-fzf
files:
- README.md
- LICENSE
- shell/kubectl_fzf.plugin.zsh
- shell/kubectl_fzf.bash
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
dockers:
- image_templates:
- "bonnefoa/kubectl-fzf:{{ .Tag }}"
- "bonnefoa/kubectl-fzf:v{{ .Major }}"
- "bonnefoa/kubectl-fzf:v{{ .Major }}.{{ .Minor }}"
- "bonnefoa/kubectl-fzf:latest"
dockerfile: Dockerfile.goreleaser
goos: linux
goarch: amd64
build_flag_templates:
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/bonnefoa/kubectl-fzf
- --label=org.opencontainers.image.source=https://github.com/bonnefoa/kubectl-fzf
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
algorithm: sha256
snapshot:
name_template: "{{ .Tag }}-next"
release:
github:
owner: bonnefoa
name: kubectl-fzf
draft: true
prerelease: auto
name_template: "v{{.Version}}"
disable: false
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'