-
Notifications
You must be signed in to change notification settings - Fork 10
/
.goreleaser.yml
45 lines (44 loc) · 1.29 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
before:
hooks:
- go mod download
builds:
- main: kubectl-karbon.go
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X github.com/nutanix/kubectl-karbon/version.Version={{.Version}}
- -X github.com/nutanix/kubectl-karbon/version.Commit={{.ShortCommit}}
- -X github.com/nutanix/kubectl-karbon/version.Date={{.Date}}
- -X github.com/nutanix/kubectl-karbon/version.BuiltBy=GoReleaser
- -X github.com/nutanix/kubectl-karbon/version.OsName={{.Os}}
- -X github.com/nutanix/kubectl-karbon/version.PlatformName={{.Arch}}
archives:
- builds:
- kubectl-karbon
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: false
format: tar.gz
# Homebrew
brews:
- name: kubectl-karbon
repository:
owner: nutanix
name: homebrew-tap
branch: main
token: "{{ .Env.NUTANIX_BOT_PAT }}"
commit_author:
name: tuxtof
email: [email protected]
directory: Formula
homepage: https://github.com/nutanix/kubectl-karbon
description: Kubectl extension to quickly connect to an existing karbon cluster!
test: |
system "kubectl-karbon version"