kubekey/.goreleaser.yaml
liujian 3af5e91aa4
feat: update release configuration and add download script (#2815)
- Changed the archive name template in .goreleaser.yaml for better clarity.
- Added a new section in README files to document the UI installation process for versions v4.0.0 and above.
- Removed the old release workflow file and updated the releaser.yaml to include artifact synchronization to OSS.
- Introduced a new script (downloadKubekey.sh) for downloading binaries with UI support.

Signed-off-by: redscholar <blacktiledhouse@gmail.com>
2025-10-20 18:45:43 +08:00

41 lines
597 B
YAML

version: 2
env:
- GO111MODULE=on
- CGO_ENABLED=0
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/kk/kubekey.go
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
binary: kk
ldflags: "{{ .Env.LDFLAGS }}"
flags:
- -trimpath
tags:
- builtin
archives:
- format: tar.gz
name_template: "kubekey-v{{ .Version }}-{{ .Os }}-{{ .Arch }}"
files:
- none*
checksum:
name_template: "{{ .ProjectName }}_v{{ .Version }}_checksums.txt"
release:
prerelease: auto
universal_binaries:
- replace: true