.goreleaser.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. before:
  2. hooks:
  3. - go mod download
  4. builds:
  5. - binary: ntfy
  6. env:
  7. - CGO_ENABLED=0
  8. goos:
  9. - linux
  10. - windows
  11. - darwin
  12. goarch:
  13. - amd64
  14. nfpms:
  15. -
  16. package_name: ntfy
  17. file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}"
  18. homepage: https://heckel.io/ntfy
  19. maintainer: Philipp C. Heckel <philipp.heckel@gmail.com>
  20. description: Simple pub-sub notification service
  21. license: Apache 2.0
  22. formats:
  23. - deb
  24. - rpm
  25. bindir: /usr/bin
  26. contents:
  27. - src: config/config.yml
  28. dst: /etc/ntfy/config.yml
  29. type: config
  30. - src: config/ntfy.service
  31. dst: /lib/systemd/system/ntfy.service
  32. scripts:
  33. postremove: "scripts/postrm.sh"
  34. archives:
  35. -
  36. wrap_in_directory: true
  37. files:
  38. - LICENSE
  39. - README.md
  40. - config/config.yml
  41. - config/ntfy.service
  42. replacements:
  43. 386: i386
  44. amd64: x86_64
  45. checksum:
  46. name_template: 'checksums.txt'
  47. snapshot:
  48. name_template: "{{ .Tag }}-next"
  49. changelog:
  50. sort: asc
  51. filters:
  52. exclude:
  53. - '^docs:'
  54. - '^test:'
  55. dockers:
  56. - dockerfile: Dockerfile
  57. ids:
  58. - ntfy
  59. image_templates:
  60. - "binwiederhier/ntfy:latest"
  61. - "binwiederhier/ntfy:{{ .Tag }}"
  62. - "binwiederhier/ntfy:v{{ .Major }}.{{ .Minor }}"