Upgrade ntfy v2.17.0 → v2.19.2 (#305)
All checks were successful
Build Container (Nix) / detect (push) Successful in 1s
Build Container / detect (push) Successful in 3s
Build Container (Nix) / build (ntfy) (push) Successful in 4s
Build Container / build (ntfy) (push) Successful in 11s

## Summary
- Upgrade ntfy from v2.17.0 to v2.19.2
- Update Dockerfile and Nix build definitions with new version, commit SHA, and hashes
- Add `subPackages = [ "." ]` to Nix build to handle new `tools/loadtest` module in upstream

## Upstream changes (no breaking changes)
- **v2.18.0:** Experimental PostgreSQL backend support
- **v2.19.0:** PostgreSQL read replica support, notification sound throttling
- **v2.19.1-2:** PostgreSQL bug fixes, web push race condition fix

## Test plan
- [ ] Container builds complete on Forgejo Actions (both Dockerfile and Nix)
- [ ] Update kustomization.yaml `newTag` to the built nix image tag
- [ ] `argocd app set ntfy --revision upgrade/ntfy-v2.19.2 && argocd app sync ntfy`
- [ ] Verify ntfy health: `curl https://ntfy.ops.eblu.me/v1/health`
- [ ] Send a test notification

Reviewed-on: #305
This commit is contained in:
Erich Blume 2026-03-23 10:32:06 -07:00
commit d1dac0c241
5 changed files with 13 additions and 10 deletions

View file

@ -8,7 +8,7 @@ resources:
- ingress-tailscale.yaml - ingress-tailscale.yaml
images: images:
- name: registry.ops.eblu.me/blumeops/ntfy - name: registry.ops.eblu.me/blumeops/ntfy
newTag: v2.17.0-613f05d-nix newTag: v2.19.2-f654c57-nix
configMapGenerator: configMapGenerator:
- name: ntfy-config - name: ntfy-config
files: files:

View file

@ -1,9 +1,9 @@
# ntfy push notification server # ntfy push notification server
# Three-stage build: Web UI (Node), server (Go+SQLite), runtime (Alpine) # Three-stage build: Web UI (Node), server (Go+SQLite), runtime (Alpine)
ARG CONTAINER_APP_VERSION=v2.17.0 ARG CONTAINER_APP_VERSION=v2.19.2
ARG NTFY_VERSION=${CONTAINER_APP_VERSION} ARG NTFY_VERSION=${CONTAINER_APP_VERSION}
ARG NTFY_COMMIT=a03a37feb1869e84e3af0dd6190bdc7183f211ec ARG NTFY_COMMIT=2ad78edca12f1a43c566ffab9e93b3ed26426a6c
FROM node:22-alpine AS web-build FROM node:22-alpine AS web-build

View file

@ -1,21 +1,21 @@
# Nix-built ntfy push notification server # Nix-built ntfy push notification server
# Builds v2.17.0 from forge mirror (nixpkgs has 2.15.0) # Builds v2.19.2 from forge mirror
# Built with dockerTools.buildLayeredImage for efficient layer caching # Built with dockerTools.buildLayeredImage for efficient layer caching
{ pkgs ? import <nixpkgs> { } }: { pkgs ? import <nixpkgs> { } }:
let let
version = "2.17.0"; version = "2.19.2";
src = pkgs.fetchgit { src = pkgs.fetchgit {
url = "https://forge.ops.eblu.me/mirrors/ntfy.git"; url = "https://forge.ops.eblu.me/mirrors/ntfy.git";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-/dxILAkye1HwYcybnx1WrMRK2jXZMrxal2ZKm6y2bWc="; hash = "sha256-HISQnb6LkKGujZsWCzVD3dTuobhUXqrmTFuov7dU+lY=";
}; };
ui = pkgs.buildNpmPackage { ui = pkgs.buildNpmPackage {
inherit src version; inherit src version;
pname = "ntfy-sh-ui"; pname = "ntfy-sh-ui";
npmDepsHash = "sha256-d73rymqCKalsjAwHSJshEovmUHJStfGt8wcZYN49sHY="; npmDepsHash = "sha256-PmhWzktybM6Cg7yYRfbxWE83C+XkmHh4garHhsydwwE=";
prePatch = '' prePatch = ''
cd web/ cd web/
@ -34,10 +34,12 @@ let
ntfy = pkgs.buildGoModule { ntfy = pkgs.buildGoModule {
inherit src version; inherit src version;
pname = "ntfy-sh"; pname = "ntfy-sh";
vendorHash = "sha256-/mQ+UwBYz78mPVVwYgsSYatE00ce2AKXJdx+nl6oT8E="; vendorHash = "sha256-mr2PbxT5QWf4HZGgUg+oUjauqmZ6bh6N3f0ytwPDppU=";
doCheck = false; doCheck = false;
subPackages = [ "." ];
ldflags = [ ldflags = [
"-s" "-s"
"-w" "-w"

View file

@ -0,0 +1 @@
Upgrade ntfy v2.17.0 → v2.19.2 (adds experimental PostgreSQL support, read replicas, web push fixes)

View file

@ -33,8 +33,8 @@ services:
- name: ntfy - name: ntfy
type: argocd type: argocd
last-reviewed: 2026-02-17 last-reviewed: 2026-03-23
current-version: "v2.17.0" current-version: "v2.19.2"
upstream-source: https://github.com/binwiederhier/ntfy/releases upstream-source: https://github.com/binwiederhier/ntfy/releases
- name: homepage - name: homepage