From 2447db440302f2e46123c53af0f05e5d81df4661 Mon Sep 17 00:00:00 2001 From: Mel Date: Sat, 13 Jun 2026 00:50:34 +0200 Subject: Sanitize Grafana+Victoria version tags Signed-off-by: Mel --- pkgs/common.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pkgs/common.nix') diff --git a/pkgs/common.nix b/pkgs/common.nix index d6bd9c6..212d1e6 100644 --- a/pkgs/common.nix +++ b/pkgs/common.nix @@ -105,6 +105,10 @@ let }; }; + # we usually use nix versions as docker image tags, issue is nix versions + # have characters which docker does not support. this cleans them up! + sanitizeTag = tag: lib.replaceStrings [ "+" "~" ":" ] [ "_" "_" "_" ] tag; + soloOrDuoPort = p: with builtins; @@ -142,4 +146,4 @@ let "${me.tailscale.ip}:${host}:${container}"; }; in -images // ports +images // ports // { inherit sanitizeTag; } -- cgit 1.4.1