add goreleaser

This commit is contained in:
Gianni Carafa
2023-11-02 04:56:57 +01:00
parent fc9dc0df27
commit 366287180c
5 changed files with 94 additions and 3 deletions

42
.goreleaser.yaml Normal file
View File

@@ -0,0 +1,42 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
builds:
-
main: cmd/main.go
binary: kubero
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^public:'
- '^.github:'
#brews:
# -
# repository:
# owner: kubero-dev
# name: homebrew-ladder
# token: "{{ .Env.GORELEASER_GITHUB_TOKEN }}"
# homepage: "https://www.kubero.dev"
# description: "Manage your kubero applications with the CLI"
# test: |
# system "#{bin}/kubero", "--version"