.goreleaser.yaml 690 B

12345678910111213141516171819202122232425262728293031323334353637
  1. version: 2
  2. builds:
  3. - id: default
  4. binary: esoctl
  5. flags:
  6. - -tags
  7. - netgo release
  8. - -trimpath
  9. env:
  10. - CGO_ENABLED=0
  11. goos:
  12. - linux
  13. - darwin
  14. - windows
  15. goarch:
  16. - amd64
  17. - arm64
  18. ignore:
  19. - goos: windows
  20. goarch: arm64
  21. archives:
  22. - id: default
  23. builds:
  24. - default
  25. name_template: "esoctl_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
  26. format: tar.gz
  27. signs:
  28. - artifacts: checksum
  29. args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"]
  30. sboms:
  31. - artifacts: archive
  32. checksum:
  33. name_template: "esoctl_checksums.txt"