Merge 0c62ae856f
into 9d3fc20e58
This commit is contained in:
commit
58688935ef
|
@ -13,6 +13,18 @@ builds:
|
||||||
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
|
||||||
goos: [linux]
|
goos: [linux]
|
||||||
goarch: [amd64]
|
goarch: [amd64]
|
||||||
|
-
|
||||||
|
id: ntfy_linux_armv5
|
||||||
|
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: [5]
|
||||||
-
|
-
|
||||||
id: ntfy_linux_armv6
|
id: ntfy_linux_armv6
|
||||||
binary: ntfy
|
binary: ntfy
|
||||||
|
@ -108,6 +120,7 @@ archives:
|
||||||
id: ntfy_linux
|
id: ntfy_linux
|
||||||
builds:
|
builds:
|
||||||
- ntfy_linux_amd64
|
- ntfy_linux_amd64
|
||||||
|
- ntfy_linux_armv5
|
||||||
- ntfy_linux_armv6
|
- ntfy_linux_armv6
|
||||||
- ntfy_linux_armv7
|
- ntfy_linux_armv7
|
||||||
- ntfy_linux_arm64
|
- ntfy_linux_arm64
|
||||||
|
@ -184,6 +197,14 @@ dockers:
|
||||||
goarm: 6
|
goarm: 6
|
||||||
build_flag_templates:
|
build_flag_templates:
|
||||||
- "--platform=linux/arm/v6"
|
- "--platform=linux/arm/v6"
|
||||||
|
- image_templates:
|
||||||
|
- &armv5_image "binwiederhier/ntfy:{{ .Tag }}-armv5"
|
||||||
|
use: buildx
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
goarch: arm
|
||||||
|
goarm: 5
|
||||||
|
build_flag_templates:
|
||||||
|
- "--platform=linux/arm/v5"
|
||||||
docker_manifests:
|
docker_manifests:
|
||||||
- name_template: "binwiederhier/ntfy:latest"
|
- name_template: "binwiederhier/ntfy:latest"
|
||||||
image_templates:
|
image_templates:
|
||||||
|
@ -191,9 +212,11 @@ docker_manifests:
|
||||||
- *arm64v8_image
|
- *arm64v8_image
|
||||||
- *armv7_image
|
- *armv7_image
|
||||||
- *armv6_image
|
- *armv6_image
|
||||||
|
- *armv5_image
|
||||||
- name_template: "binwiederhier/ntfy:{{ .Tag }}"
|
- name_template: "binwiederhier/ntfy:{{ .Tag }}"
|
||||||
image_templates:
|
image_templates:
|
||||||
- *amd64_image
|
- *amd64_image
|
||||||
- *arm64v8_image
|
- *arm64v8_image
|
||||||
- *armv7_image
|
- *armv7_image
|
||||||
- *armv6_image
|
- *armv6_image
|
||||||
|
- *armv5_image
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -22,6 +22,7 @@ help:
|
||||||
@echo "Build server & client (using GoReleaser, not release version):"
|
@echo "Build server & client (using GoReleaser, not release version):"
|
||||||
@echo " make cli - Build server & client (all architectures)"
|
@echo " make cli - Build server & client (all architectures)"
|
||||||
@echo " make cli-linux-amd64 - Build server & client (Linux, amd64 only)"
|
@echo " make cli-linux-amd64 - Build server & client (Linux, amd64 only)"
|
||||||
|
@echo " make cli-linux-armv5 - Build server & client (Linux, armv5 only)"
|
||||||
@echo " make cli-linux-armv6 - Build server & client (Linux, armv6 only)"
|
@echo " make cli-linux-armv6 - Build server & client (Linux, armv6 only)"
|
||||||
@echo " make cli-linux-armv7 - Build server & client (Linux, armv7 only)"
|
@echo " make cli-linux-armv7 - Build server & client (Linux, armv7 only)"
|
||||||
@echo " make cli-linux-arm64 - Build server & client (Linux, arm64 only)"
|
@echo " make cli-linux-arm64 - Build server & client (Linux, arm64 only)"
|
||||||
|
@ -166,6 +167,9 @@ cli: cli-deps
|
||||||
cli-linux-amd64: cli-deps-static-sites
|
cli-linux-amd64: cli-deps-static-sites
|
||||||
goreleaser build --snapshot --clean --id ntfy_linux_amd64
|
goreleaser build --snapshot --clean --id ntfy_linux_amd64
|
||||||
|
|
||||||
|
cli-linux-armv5: cli-deps-static-sites cli-deps-gcc-armv6-armv7
|
||||||
|
goreleaser build --snapshot --clean --id ntfy_linux_armv5
|
||||||
|
|
||||||
cli-linux-armv6: cli-deps-static-sites cli-deps-gcc-armv6-armv7
|
cli-linux-armv6: cli-deps-static-sites cli-deps-gcc-armv6-armv7
|
||||||
goreleaser build --snapshot --clean --id ntfy_linux_armv6
|
goreleaser build --snapshot --clean --id ntfy_linux_armv6
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,15 @@ deb/rpm packages.
|
||||||
sudo ntfy serve
|
sudo ntfy serve
|
||||||
```
|
```
|
||||||
|
|
||||||
|
=== "armv5"
|
||||||
|
```bash
|
||||||
|
wget https://github.com/binwiederhier/ntfy/releases/download/v2.3.1/ntfy_2.3.1_linux_armv5.tar.gz
|
||||||
|
tar zxvf ntfy_2.3.1_linux_armv5.tar.gz
|
||||||
|
sudo cp -a ntfy_2.3.1_linux_armv5/ntfy /usr/bin/ntfy
|
||||||
|
sudo mkdir /etc/ntfy && sudo cp ntfy_2.3.1_linux_armv5/{client,server}/*.yml /etc/ntfy
|
||||||
|
sudo ntfy serve
|
||||||
|
```
|
||||||
|
|
||||||
=== "armv6"
|
=== "armv6"
|
||||||
```bash
|
```bash
|
||||||
wget https://github.com/binwiederhier/ntfy/releases/download/v2.11.0/ntfy_2.11.0_linux_armv6.tar.gz
|
wget https://github.com/binwiederhier/ntfy/releases/download/v2.11.0/ntfy_2.11.0_linux_armv6.tar.gz
|
||||||
|
@ -80,6 +89,19 @@ Installation via Debian repository:
|
||||||
sudo systemctl start ntfy
|
sudo systemctl start ntfy
|
||||||
```
|
```
|
||||||
|
|
||||||
|
=== "armv5/armel"
|
||||||
|
```bash
|
||||||
|
sudo mkdir -p /etc/apt/keyrings
|
||||||
|
curl -fsSL https://archive.heckel.io/apt/pubkey.txt | sudo gpg --dearmor -o /etc/apt/keyrings/archive.heckel.io.gpg
|
||||||
|
sudo apt install apt-transport-https
|
||||||
|
sudo sh -c "echo 'deb [arch=armel signed-by=/etc/apt/keyrings/archive.heckel.io.gpg] https://archive.heckel.io/apt debian main' \
|
||||||
|
> /etc/apt/sources.list.d/archive.heckel.io.list"
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install ntfy
|
||||||
|
sudo systemctl enable ntfy
|
||||||
|
sudo systemctl start ntfy
|
||||||
|
```
|
||||||
|
|
||||||
=== "armv7/armhf"
|
=== "armv7/armhf"
|
||||||
```bash
|
```bash
|
||||||
sudo mkdir -p /etc/apt/keyrings
|
sudo mkdir -p /etc/apt/keyrings
|
||||||
|
@ -116,6 +138,13 @@ Manually installing the .deb file:
|
||||||
sudo systemctl start ntfy
|
sudo systemctl start ntfy
|
||||||
```
|
```
|
||||||
|
|
||||||
|
=== "armv5"
|
||||||
|
```bash
|
||||||
|
wget https://github.com/binwiederhier/ntfy/releases/download/v2.3.1/ntfy_2.3.1_linux_armv5.deb
|
||||||
|
sudo dpkg -i ntfy_*.deb
|
||||||
|
sudo systemctl enable ntfy
|
||||||
|
sudo systemctl start ntfy
|
||||||
|
|
||||||
=== "armv6"
|
=== "armv6"
|
||||||
```bash
|
```bash
|
||||||
wget https://github.com/binwiederhier/ntfy/releases/download/v2.11.0/ntfy_2.11.0_linux_armv6.deb
|
wget https://github.com/binwiederhier/ntfy/releases/download/v2.11.0/ntfy_2.11.0_linux_armv6.deb
|
||||||
|
@ -149,6 +178,13 @@ Manually installing the .deb file:
|
||||||
sudo systemctl start ntfy
|
sudo systemctl start ntfy
|
||||||
```
|
```
|
||||||
|
|
||||||
|
=== "armv5"
|
||||||
|
```bash
|
||||||
|
sudo rpm -ivh https://github.com/binwiederhier/ntfy/releases/download/v2.3.1/ntfy_2.3.1_linux_armv5.rpm
|
||||||
|
sudo systemctl enable ntfy
|
||||||
|
sudo systemctl start ntfy
|
||||||
|
```
|
||||||
|
|
||||||
=== "armv6"
|
=== "armv6"
|
||||||
```bash
|
```bash
|
||||||
sudo rpm -ivh https://github.com/binwiederhier/ntfy/releases/download/v2.11.0/ntfy_2.11.0_linux_armv6.rpm
|
sudo rpm -ivh https://github.com/binwiederhier/ntfy/releases/download/v2.11.0/ntfy_2.11.0_linux_armv6.rpm
|
||||||
|
|
Loading…
Reference in New Issue