All checks were successful
Build Container (Nix) / detect (push) Successful in 2s
Build Container (Nix) / build (homepage) (push) Successful in 3s
Build Container (Nix) / build (navidrome) (push) Successful in 3s
Build Container (Nix) / build (ntfy) (push) Successful in 8s
Build Container / detect (push) Successful in 42s
Build Container / build (navidrome) (push) Successful in 9m37s
Build Container / build (homepage) (push) Successful in 9m56s
Build Container / build (ntfy) (push) Successful in 2m35s
## Summary - Created `mirrors` Forgejo organization for upstream mirror repos - Transferred 22 mirror repos from `eblume/` to `mirrors/` (mirror sync config preserved) - Deleted unused repos: hajimari, hister - Updated all container build URLs (homepage, navidrome, ntfy Dockerfiles + nix) - Updated documentation references (migrate-forgejo-from-brew, upstream-fork-strategy, fix-ntfy-nix-version) - `dotfiles` intentionally kept under `eblume/` per user request - `devpi` transferred to `mirrors/` Repos remaining under `eblume/`: blumeops, cv, mcquack, dotfiles ## Cleanup TODO - [ ] Delete temp Forgejo API token "claude-migration-temp" (Settings > Applications) ## Test Plan - [x] Verified mirror config (mirror=true, original_url) survived transfer on test repo (tesla_auth) - [x] All pre-commit hooks pass (including container-version-check, docs-check-links) - [ ] Verify a mirror repo sync runs successfully after transfer (check mirrors/authentik or similar) - [ ] Rebuild containers from branch to verify Dockerfile URLs resolve Reviewed-on: https://forge.ops.eblu.me/eblume/blumeops/pulls/265
87 lines
1.9 KiB
Nix
87 lines
1.9 KiB
Nix
# Nix-built ntfy push notification server
|
|
# Builds v2.17.0 from forge mirror (nixpkgs has 2.15.0)
|
|
# Built with dockerTools.buildLayeredImage for efficient layer caching
|
|
{ pkgs ? import <nixpkgs> { } }:
|
|
|
|
let
|
|
version = "2.17.0";
|
|
|
|
src = pkgs.fetchgit {
|
|
url = "https://forge.ops.eblu.me/mirrors/ntfy.git";
|
|
rev = "v${version}";
|
|
hash = "sha256-/dxILAkye1HwYcybnx1WrMRK2jXZMrxal2ZKm6y2bWc=";
|
|
};
|
|
|
|
ui = pkgs.buildNpmPackage {
|
|
inherit src version;
|
|
pname = "ntfy-sh-ui";
|
|
npmDepsHash = "sha256-d73rymqCKalsjAwHSJshEovmUHJStfGt8wcZYN49sHY=";
|
|
|
|
prePatch = ''
|
|
cd web/
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mv build/index.html build/app.html
|
|
rm build/config.js
|
|
mkdir -p $out
|
|
mv build/ $out/site
|
|
runHook postInstall
|
|
'';
|
|
};
|
|
|
|
ntfy = pkgs.buildGoModule {
|
|
inherit src version;
|
|
pname = "ntfy-sh";
|
|
vendorHash = "sha256-/mQ+UwBYz78mPVVwYgsSYatE00ce2AKXJdx+nl6oT8E=";
|
|
|
|
doCheck = false;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
];
|
|
|
|
postPatch = ''
|
|
sed -i 's# /bin/echo# echo#' Makefile
|
|
'';
|
|
|
|
# Copy pre-built web UI; skip docs (create placeholder for go:embed)
|
|
preBuild = ''
|
|
cp -r ${ui}/site/ server/
|
|
mkdir -p server/docs && touch server/docs/placeholder
|
|
'';
|
|
|
|
meta = with pkgs.lib; {
|
|
description = "Send push notifications to your phone or desktop via PUT/POST";
|
|
homepage = "https://ntfy.sh";
|
|
license = licenses.asl20;
|
|
mainProgram = "ntfy";
|
|
};
|
|
};
|
|
in
|
|
|
|
pkgs.dockerTools.buildLayeredImage {
|
|
name = "blumeops/ntfy";
|
|
tag = "latest";
|
|
|
|
contents = [
|
|
ntfy
|
|
pkgs.cacert
|
|
pkgs.tzdata
|
|
];
|
|
|
|
config = {
|
|
Entrypoint = [ "${ntfy}/bin/ntfy" ];
|
|
Env = [
|
|
"SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
|
|
"TZDIR=${pkgs.tzdata}/share/zoneinfo"
|
|
];
|
|
ExposedPorts = {
|
|
"80/tcp" = { };
|
|
};
|
|
User = "65534";
|
|
};
|
|
}
|