kubekey/.goreleaser.yml
joyceliu 6a821da6e6 doc: add github action
Signed-off-by: joyceliu <joyceliu@yunify.com>
2024-06-28 10:43:32 +08:00

34 lines
470 B
YAML

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: kubekey
ldflags: "{{ .Env.LDFLAGS }}"
flags:
- builtin
archives:
- name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- none*
release:
prerelease: auto
universal_binaries:
- replace: true