2021-10-24 03:29:45 +02:00
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- go mod download
|
|
|
|
builds:
|
2021-11-20 21:43:15 +01:00
|
|
|
-
|
|
|
|
id: ntfy
|
|
|
|
binary: ntfy
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=1 # required for go-sqlite3
|
2021-11-21 02:27:17 +01:00
|
|
|
tags: [sqlite_omit_load_extension,osusergo,netgo]
|
2021-11-21 02:18:40 +01:00
|
|
|
ldflags:
|
|
|
|
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
2021-11-20 21:43:15 +01:00
|
|
|
goos: [linux]
|
|
|
|
goarch: [amd64]
|
|
|
|
-
|
2021-11-22 22:09:54 +01:00
|
|
|
id: ntfy_armv7
|
2021-11-20 21:43:15 +01:00
|
|
|
binary: ntfy
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=1 # required for go-sqlite3
|
|
|
|
- CC=arm-linux-gnueabi-gcc # apt install gcc-arm-linux-gnueabi
|
2021-11-21 02:27:17 +01:00
|
|
|
tags: [sqlite_omit_load_extension,osusergo,netgo]
|
2021-11-21 02:18:40 +01:00
|
|
|
ldflags:
|
|
|
|
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
2021-11-20 21:43:15 +01:00
|
|
|
goos: [linux]
|
|
|
|
goarch: [arm]
|
2021-11-22 22:09:54 +01:00
|
|
|
goarm: [7]
|
2021-11-20 21:43:15 +01:00
|
|
|
-
|
|
|
|
id: ntfy_arm64
|
|
|
|
binary: ntfy
|
2021-10-24 03:29:45 +02:00
|
|
|
env:
|
2021-11-03 16:46:24 +01:00
|
|
|
- CGO_ENABLED=1 # required for go-sqlite3
|
2021-11-20 21:43:15 +01:00
|
|
|
- CC=aarch64-linux-gnu-gcc # apt install gcc-aarch64-linux-gnu
|
2021-11-21 02:27:17 +01:00
|
|
|
tags: [sqlite_omit_load_extension,osusergo,netgo]
|
2021-11-21 02:18:40 +01:00
|
|
|
ldflags:
|
|
|
|
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
2021-11-20 21:43:15 +01:00
|
|
|
goos: [linux]
|
|
|
|
goarch: [arm64]
|
2021-10-24 03:29:45 +02:00
|
|
|
nfpms:
|
|
|
|
-
|
|
|
|
package_name: ntfy
|
|
|
|
homepage: https://heckel.io/ntfy
|
|
|
|
maintainer: Philipp C. Heckel <philipp.heckel@gmail.com>
|
|
|
|
description: Simple pub-sub notification service
|
|
|
|
license: Apache 2.0
|
|
|
|
formats:
|
|
|
|
- deb
|
|
|
|
- rpm
|
|
|
|
bindir: /usr/bin
|
|
|
|
contents:
|
2021-12-19 04:02:36 +01:00
|
|
|
- src: server/server.yml
|
|
|
|
dst: /etc/ntfy/server.yml
|
2021-10-24 03:29:45 +02:00
|
|
|
type: config
|
2021-12-19 04:02:36 +01:00
|
|
|
- src: server/ntfy.service
|
2021-10-24 03:29:45 +02:00
|
|
|
dst: /lib/systemd/system/ntfy.service
|
2021-12-19 04:02:36 +01:00
|
|
|
- src: client/client.yml
|
|
|
|
dst: /etc/ntfy/client.yml
|
|
|
|
type: config
|
|
|
|
- src: client/ntfy-client.service
|
|
|
|
dst: /lib/systemd/system/ntfy-client.service
|
2021-12-09 04:08:44 +01:00
|
|
|
- dst: /var/cache/ntfy
|
|
|
|
type: dir
|
2022-01-13 23:16:04 +01:00
|
|
|
- dst: /var/cache/ntfy/attachments
|
|
|
|
type: dir
|
2022-02-01 22:40:33 +01:00
|
|
|
- dst: /var/lib/ntfy
|
|
|
|
type: dir
|
2021-12-22 10:21:59 +01:00
|
|
|
- dst: /usr/share/ntfy/logo.png
|
|
|
|
src: server/static/img/ntfy.png
|
2021-10-24 03:29:45 +02:00
|
|
|
scripts:
|
2021-12-19 04:02:36 +01:00
|
|
|
preinstall: "scripts/preinst.sh"
|
2021-12-04 21:32:21 +01:00
|
|
|
postinstall: "scripts/postinst.sh"
|
|
|
|
preremove: "scripts/prerm.sh"
|
2021-10-24 03:29:45 +02:00
|
|
|
postremove: "scripts/postrm.sh"
|
|
|
|
archives:
|
|
|
|
-
|
|
|
|
wrap_in_directory: true
|
|
|
|
files:
|
|
|
|
- LICENSE
|
|
|
|
- README.md
|
2021-12-19 04:02:36 +01:00
|
|
|
- server/server.yml
|
|
|
|
- server/ntfy.service
|
|
|
|
- client/client.yml
|
|
|
|
- client/ntfy-client.service
|
2021-10-24 03:29:45 +02:00
|
|
|
replacements:
|
|
|
|
386: i386
|
|
|
|
amd64: x86_64
|
|
|
|
checksum:
|
|
|
|
name_template: 'checksums.txt'
|
|
|
|
snapshot:
|
|
|
|
name_template: "{{ .Tag }}-next"
|
|
|
|
changelog:
|
|
|
|
sort: asc
|
|
|
|
filters:
|
|
|
|
exclude:
|
|
|
|
- '^docs:'
|
|
|
|
- '^test:'
|
|
|
|
dockers:
|
2021-11-22 16:46:19 +01:00
|
|
|
- image_templates:
|
|
|
|
- &amd64_image "binwiederhier/ntfy:{{ .Tag }}-amd64"
|
|
|
|
use: buildx
|
|
|
|
dockerfile: Dockerfile
|
2021-11-20 21:43:15 +01:00
|
|
|
goarch: amd64
|
2021-11-22 16:46:19 +01:00
|
|
|
build_flag_templates:
|
|
|
|
- "--platform=linux/amd64"
|
|
|
|
- image_templates:
|
|
|
|
- &arm64v8_image "binwiederhier/ntfy:{{ .Tag }}-arm64v8"
|
|
|
|
use: buildx
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
build_flag_templates:
|
|
|
|
- "--platform=linux/arm64/v8"
|
2021-11-22 22:09:54 +01:00
|
|
|
- image_templates:
|
|
|
|
- &armv7_image "binwiederhier/ntfy:{{ .Tag }}-armv7"
|
|
|
|
use: buildx
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
goarch: arm
|
|
|
|
goarm: 7
|
|
|
|
build_flag_templates:
|
|
|
|
- "--platform=linux/arm/v7"
|
2021-11-22 16:46:19 +01:00
|
|
|
docker_manifests:
|
|
|
|
- name_template: "binwiederhier/ntfy:latest"
|
2021-10-24 03:29:45 +02:00
|
|
|
image_templates:
|
2021-11-22 16:46:19 +01:00
|
|
|
- *amd64_image
|
|
|
|
- *arm64v8_image
|
2021-11-22 22:09:54 +01:00
|
|
|
- *armv7_image
|
2021-11-22 16:46:19 +01:00
|
|
|
- name_template: "binwiederhier/ntfy:{{ .Tag }}"
|
|
|
|
image_templates:
|
|
|
|
- *amd64_image
|
|
|
|
- *arm64v8_image
|
2021-11-22 22:09:54 +01:00
|
|
|
- *armv7_image
|