From 7663c3a87167b59c706bd4ec0cf708402aa7fe46 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 4 Feb 2026 08:52:54 +0100 Subject: source container image version from metadata MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- bundles/immich/files/kube.yaml | 2 +- bundles/immich/items.py | 2 ++ bundles/immich/metadata.py | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'bundles/immich') diff --git a/bundles/immich/files/kube.yaml b/bundles/immich/files/kube.yaml index 9ea3661..18f5cf6 100644 --- a/bundles/immich/files/kube.yaml +++ b/bundles/immich/files/kube.yaml @@ -23,7 +23,7 @@ spec: dnsPolicy: Default containers: - name: immich - image: ghcr.io/immich-app/immich-server:v1.140.1 + image: ghcr.io/immich-app/immich-server:v${version} envFrom: - secretRef: name: immich diff --git a/bundles/immich/items.py b/bundles/immich/items.py index 450027c..2e67eb3 100644 --- a/bundles/immich/items.py +++ b/bundles/immich/items.py @@ -1,5 +1,7 @@ files = { "/etc/deployments/immich/kube.yaml": { + "content_type": "mako", + "context": node.metadata.get("containers")["immich"], "triggers": {"svc_s6rc:immich:restart"}, }, "/etc/deployments/immich/secret.yaml": { diff --git a/bundles/immich/metadata.py b/bundles/immich/metadata.py index 2a0a806..30b9eb3 100644 --- a/bundles/immich/metadata.py +++ b/bundles/immich/metadata.py @@ -9,7 +9,9 @@ defaults = { } }, "containers": { - "immich": {}, + "immich": { + "version": "2.4.1", + }, }, # "metrics": { # "immich": {}, -- cgit 1.4.1