add goreleaser

This commit is contained in:
Kjeld Schouten
2024-10-16 20:49:44 +02:00
parent c816b6ea45
commit 749d628c75

43
.goreleaser.yaml Normal file
View File

@@ -0,0 +1,43 @@
project_name: clustertool
builds:
- id: clustertool
dir: clustertool
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- freebsd
- windows
goarch:
- amd64
- arm64
ldflags:
- -s -w -X github.com/truecharts/private/clustertool/cmd.version={{.Version}} # Adjust path if necessary
archives:
- name_template: "{{.ProjectName}}_{{ .Version }}_{{.Os}}_{{.Arch}}"
checksum:
name_template: "checksums.txt"
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^Merge pull request #\d+ from'
- "^docs"
- "^test"
release:
github:
owner: truecharts
name: clustertool-public
draft: true
make_latest: false
before:
hooks:
- chmod +x ./clustertool/partial_builds/partial_build.sh
- ./clustertool/partial_builds/partial_build.sh
- chmod +x ./clustertool/embed/download_talosctl.sh
- ./clustertool/embed/download_talosctl.sh
- find