From 72a8cd8fb7e7bce423aa36635e68ad160439b927 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Tue, 4 Aug 2026 22:56:47 +0200 Subject: [PATCH] Fix containerized Kubernetes deployment --- .gitea/workflows/container.yml | 6 ++++++ CMakeLists.txt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/container.yml b/.gitea/workflows/container.yml index bf2adba..04c00ae 100644 --- a/.gitea/workflows/container.yml +++ b/.gitea/workflows/container.yml @@ -5,6 +5,8 @@ on: env: IMAGE: registry.brunner.ninja/feedc0de/immich-sync + KUBERNETES_API: https://host.containers.internal:6443 + KUBERNETES_TLS_SERVER_NAME: 192.168.0.2 jobs: publish: @@ -73,6 +75,10 @@ jobs: test -n "${KUBE_CONFIG_BASE64}" printf '%s' "${KUBE_CONFIG_BASE64}" | base64 --decode > "${RUNNER_TEMP}/kubeconfig" chmod 0600 "${RUNNER_TEMP}/kubeconfig" + export KUBECONFIG="${RUNNER_TEMP}/kubeconfig" + "${RUNNER_TEMP}/kubectl" config set-cluster cluster \ + --server="${KUBERNETES_API}" \ + --tls-server-name="${KUBERNETES_TLS_SERVER_NAME}" - name: Deploy commit image env: diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a84536..5db1f2d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.28) -project(immich-sync VERSION 0.1.0 LANGUAGES CXX) +project(immich-sync VERSION 0.1.1 LANGUAGES CXX) set(CMAKE_CXX_STANDARD 23) set(CMAKE_CXX_STANDARD_REQUIRED ON)