.goreleaser.yml 1.3 KB

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