diff options
| author | Mel <mel@rnrd.eu> | 2026-06-13 00:50:34 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2026-06-13 00:50:34 +0200 |
| commit | 2447db440302f2e46123c53af0f05e5d81df4661 (patch) | |
| tree | 6cfbadb1b8f9907a8781f1d199a46d9a76cf4026 /pkgs | |
| parent | 057c30870502d3bb63089e01c6283c1100b91bf4 (diff) | |
| download | network-2447db440302f2e46123c53af0f05e5d81df4661.tar.zst network-2447db440302f2e46123c53af0f05e5d81df4661.zip | |
Sanitize Grafana+Victoria version tags
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'pkgs')
| -rw-r--r-- | pkgs/common.nix | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |
