2021-10-24 04:29:45 +03:00
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- go mod download
|
2022-02-15 03:12:50 +03:00
|
|
|
- go mod tidy
|
2021-10-24 04:29:45 +03:00
|
|
|
builds:
|
2021-11-20 23:43:15 +03:00
|
|
|
-
|
2022-05-10 02:46:32 +03:00
|
|
|
id: ntfy_linux_amd64
|
2021-11-20 23:43:15 +03:00
|
|
|
binary: ntfy
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=1 # required for go-sqlite3
|
2021-11-21 04:27:17 +03:00
|
|
|
tags: [sqlite_omit_load_extension,osusergo,netgo]
|
2021-11-21 04:18:40 +03:00
|
|
|
ldflags:
|
|
|
|
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
2021-11-20 23:43:15 +03:00
|
|
|
goos: [linux]
|
|
|
|
goarch: [amd64]
|
2022-02-15 03:12:50 +03:00
|
|
|
hooks:
|
|
|
|
post:
|
|
|
|
- upx "{{ .Path }}" # apt install upx
|
2022-04-07 02:45:30 +03:00
|
|
|
-
|
2022-05-10 02:46:32 +03:00
|
|
|
id: ntfy_linux_armv6
|
2022-04-07 02:45:30 +03:00
|
|
|
binary: ntfy
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=1 # required for go-sqlite3
|
|
|
|
- CC=arm-linux-gnueabi-gcc # apt install gcc-arm-linux-gnueabi
|
|
|
|
tags: [sqlite_omit_load_extension,osusergo,netgo]
|
|
|
|
ldflags:
|
|
|
|
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
|
|
|
goos: [linux]
|
|
|
|
goarch: [arm]
|
|
|
|
goarm: [6]
|
2022-05-10 02:46:32 +03:00
|
|
|
# No "upx" for ARM, see https://github.com/binwiederhier/ntfy/issues/191#issuecomment-1083406546
|
2021-11-20 23:43:15 +03:00
|
|
|
-
|
2022-05-10 02:46:32 +03:00
|
|
|
id: ntfy_linux_armv7
|
2021-11-20 23:43:15 +03: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 04:27:17 +03:00
|
|
|
tags: [sqlite_omit_load_extension,osusergo,netgo]
|
2021-11-21 04:18:40 +03:00
|
|
|
ldflags:
|
|
|
|
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
2021-11-20 23:43:15 +03:00
|
|
|
goos: [linux]
|
|
|
|
goarch: [arm]
|
2021-11-23 00:09:54 +03:00
|
|
|
goarm: [7]
|
2022-05-10 02:46:32 +03:00
|
|
|
# No "upx" for ARM, see https://github.com/binwiederhier/ntfy/issues/191#issuecomment-1083406546
|
2021-11-20 23:43:15 +03:00
|
|
|
-
|
2022-05-10 02:46:32 +03:00
|
|
|
id: ntfy_linux_arm64
|
2021-11-20 23:43:15 +03:00
|
|
|
binary: ntfy
|
2021-10-24 04:29:45 +03:00
|
|
|
env:
|
2021-11-03 18:46:24 +03:00
|
|
|
- CGO_ENABLED=1 # required for go-sqlite3
|
2021-11-20 23:43:15 +03:00
|
|
|
- CC=aarch64-linux-gnu-gcc # apt install gcc-aarch64-linux-gnu
|
2021-11-21 04:27:17 +03:00
|
|
|
tags: [sqlite_omit_load_extension,osusergo,netgo]
|
2021-11-21 04:18:40 +03:00
|
|
|
ldflags:
|
|
|
|
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
2021-11-20 23:43:15 +03:00
|
|
|
goos: [linux]
|
|
|
|
goarch: [arm64]
|
2022-05-10 02:46:32 +03:00
|
|
|
# No "upx" for ARM, see https://github.com/binwiederhier/ntfy/issues/191#issuecomment-1083406546
|
2022-05-09 18:03:40 +03:00
|
|
|
-
|
|
|
|
id: ntfy_windows_amd64
|
|
|
|
binary: ntfy
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0 # explicitly disable, since we don't need go-sqlite3
|
2022-05-21 16:46:49 +03:00
|
|
|
tags: [noserver] # don't include server files
|
2022-05-09 18:03:40 +03:00
|
|
|
ldflags:
|
|
|
|
- "-X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
|
|
|
goos: [windows]
|
|
|
|
goarch: [amd64]
|
|
|
|
hooks:
|
|
|
|
post:
|
|
|
|
- upx "{{ .Path }}" # apt install upx
|
2022-05-10 04:25:00 +03:00
|
|
|
-
|
2022-05-11 05:10:38 +03:00
|
|
|
id: ntfy_darwin_all
|
2022-05-10 04:25:00 +03:00
|
|
|
binary: ntfy
|
|
|
|
env:
|
2022-05-21 16:34:53 +03:00
|
|
|
- CGO_ENABLED=0 # explicitly disable, since we don't need go-sqlite3
|
2022-05-21 16:46:49 +03:00
|
|
|
tags: [noserver] # don't include server files
|
2022-05-10 04:25:00 +03:00
|
|
|
ldflags:
|
2022-05-21 16:34:53 +03:00
|
|
|
- "-X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
2022-05-10 04:25:00 +03:00
|
|
|
goos: [darwin]
|
2022-05-11 05:10:38 +03:00
|
|
|
goarch: [amd64, arm64] # will be combined to "universal binary" (see below)
|
2021-10-24 04:29:45 +03: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 06:02:36 +03:00
|
|
|
- src: server/server.yml
|
|
|
|
dst: /etc/ntfy/server.yml
|
2022-03-15 00:21:28 +03:00
|
|
|
type: "config|noreplace"
|
2021-12-19 06:02:36 +03:00
|
|
|
- src: server/ntfy.service
|
2021-10-24 04:29:45 +03:00
|
|
|
dst: /lib/systemd/system/ntfy.service
|
2021-12-19 06:02:36 +03:00
|
|
|
- src: client/client.yml
|
|
|
|
dst: /etc/ntfy/client.yml
|
2022-03-15 00:21:28 +03:00
|
|
|
type: "config|noreplace"
|
2021-12-19 06:02:36 +03:00
|
|
|
- src: client/ntfy-client.service
|
|
|
|
dst: /lib/systemd/system/ntfy-client.service
|
2021-12-09 06:08:44 +03:00
|
|
|
- dst: /var/cache/ntfy
|
|
|
|
type: dir
|
2022-01-14 01:16:04 +03:00
|
|
|
- dst: /var/cache/ntfy/attachments
|
|
|
|
type: dir
|
2022-02-02 00:40:33 +03:00
|
|
|
- dst: /var/lib/ntfy
|
|
|
|
type: dir
|
2021-12-22 12:21:59 +03:00
|
|
|
- dst: /usr/share/ntfy/logo.png
|
2022-03-12 00:06:08 +03:00
|
|
|
src: web/public/static/img/ntfy.png
|
2021-10-24 04:29:45 +03:00
|
|
|
scripts:
|
2021-12-19 06:02:36 +03:00
|
|
|
preinstall: "scripts/preinst.sh"
|
2021-12-04 23:32:21 +03:00
|
|
|
postinstall: "scripts/postinst.sh"
|
|
|
|
preremove: "scripts/prerm.sh"
|
2021-10-24 04:29:45 +03:00
|
|
|
postremove: "scripts/postrm.sh"
|
|
|
|
archives:
|
|
|
|
-
|
2022-05-10 02:46:32 +03:00
|
|
|
id: ntfy_linux
|
|
|
|
builds:
|
|
|
|
- ntfy_linux_amd64
|
|
|
|
- ntfy_linux_armv6
|
|
|
|
- ntfy_linux_armv7
|
|
|
|
- ntfy_linux_arm64
|
2021-10-24 04:29:45 +03:00
|
|
|
wrap_in_directory: true
|
|
|
|
files:
|
|
|
|
- LICENSE
|
|
|
|
- README.md
|
2021-12-19 06:02:36 +03:00
|
|
|
- server/server.yml
|
|
|
|
- server/ntfy.service
|
|
|
|
- client/client.yml
|
|
|
|
- client/ntfy-client.service
|
2021-10-24 04:29:45 +03:00
|
|
|
replacements:
|
2022-05-10 02:46:32 +03:00
|
|
|
amd64: x86_64
|
|
|
|
-
|
|
|
|
id: ntfy_windows
|
|
|
|
builds:
|
|
|
|
- ntfy_windows_amd64
|
|
|
|
format: zip
|
|
|
|
wrap_in_directory: true
|
|
|
|
files:
|
|
|
|
- LICENSE
|
|
|
|
- README.md
|
|
|
|
- client/client.yml
|
|
|
|
replacements:
|
2021-10-24 04:29:45 +03:00
|
|
|
amd64: x86_64
|
2022-05-10 04:25:00 +03:00
|
|
|
-
|
|
|
|
id: ntfy_darwin
|
|
|
|
builds:
|
2022-05-11 05:10:38 +03:00
|
|
|
- ntfy_darwin_all
|
2022-05-10 04:25:00 +03:00
|
|
|
wrap_in_directory: true
|
|
|
|
files:
|
|
|
|
- LICENSE
|
|
|
|
- README.md
|
|
|
|
- client/client.yml
|
|
|
|
replacements:
|
|
|
|
darwin: macOS
|
2022-05-11 05:10:38 +03:00
|
|
|
universal_binaries:
|
|
|
|
-
|
|
|
|
id: ntfy_darwin_all
|
|
|
|
replace: true
|
2021-10-24 04:29:45 +03:00
|
|
|
checksum:
|
|
|
|
name_template: 'checksums.txt'
|
|
|
|
snapshot:
|
|
|
|
name_template: "{{ .Tag }}-next"
|
|
|
|
changelog:
|
|
|
|
sort: asc
|
|
|
|
filters:
|
|
|
|
exclude:
|
|
|
|
- '^docs:'
|
|
|
|
- '^test:'
|
|
|
|
dockers:
|
2021-11-22 18:46:19 +03:00
|
|
|
- image_templates:
|
|
|
|
- &amd64_image "binwiederhier/ntfy:{{ .Tag }}-amd64"
|
|
|
|
use: buildx
|
|
|
|
dockerfile: Dockerfile
|
2021-11-20 23:43:15 +03:00
|
|
|
goarch: amd64
|
2021-11-22 18:46:19 +03:00
|
|
|
build_flag_templates:
|
|
|
|
- "--platform=linux/amd64"
|
|
|
|
- image_templates:
|
|
|
|
- &arm64v8_image "binwiederhier/ntfy:{{ .Tag }}-arm64v8"
|
|
|
|
use: buildx
|
|
|
|
dockerfile: Dockerfile
|
2022-02-10 03:20:30 +03:00
|
|
|
goarch: arm64
|
2021-11-22 18:46:19 +03:00
|
|
|
build_flag_templates:
|
|
|
|
- "--platform=linux/arm64/v8"
|
2021-11-23 00:09:54 +03:00
|
|
|
- image_templates:
|
|
|
|
- &armv7_image "binwiederhier/ntfy:{{ .Tag }}-armv7"
|
|
|
|
use: buildx
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
goarch: arm
|
|
|
|
goarm: 7
|
|
|
|
build_flag_templates:
|
|
|
|
- "--platform=linux/arm/v7"
|
2022-04-25 05:25:34 +03:00
|
|
|
- image_templates:
|
|
|
|
- &armv6_image "binwiederhier/ntfy:{{ .Tag }}-armv6"
|
|
|
|
use: buildx
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
goarch: arm
|
|
|
|
goarm: 6
|
|
|
|
build_flag_templates:
|
|
|
|
- "--platform=linux/arm/v6"
|
2021-11-22 18:46:19 +03:00
|
|
|
docker_manifests:
|
|
|
|
- name_template: "binwiederhier/ntfy:latest"
|
2021-10-24 04:29:45 +03:00
|
|
|
image_templates:
|
2021-11-22 18:46:19 +03:00
|
|
|
- *amd64_image
|
|
|
|
- *arm64v8_image
|
2021-11-23 00:09:54 +03:00
|
|
|
- *armv7_image
|
2022-04-25 05:25:34 +03:00
|
|
|
- *armv6_image
|
2021-11-22 18:46:19 +03:00
|
|
|
- name_template: "binwiederhier/ntfy:{{ .Tag }}"
|
|
|
|
image_templates:
|
|
|
|
- *amd64_image
|
|
|
|
- *arm64v8_image
|
2021-11-23 00:09:54 +03:00
|
|
|
- *armv7_image
|
2022-04-25 05:25:34 +03:00
|
|
|
- *armv6_image
|