Immich: bump to v3.4.2 | Node 26 (#18939)

* Immich: bump to v3.4.2

v3.4.2 pins the FUTO restic image by version tag (0.19.1-futo.2) instead
of sha-<commit>, so the commit is now read from the image's revision
label on ghcr.io, using the digest the Dockerfile pins. The sha- form
still works.

* Update Node.js version from 24 to 26

* Update Node.js version from 24 to 26 in install script
This commit is contained in:
CanbiZ (MickLesk) authored and GitHub committed 2026-11-23 12:38:09 +01:00
1 parent 86634178c7
commit 1435e91468
2 files changed
+20 -6

No files matched your search

+10 -3
View File
@@ -80,7 +80,7 @@ EOF
fi
cd /tmp
RELEASE="v3.4.1"
RELEASE="v3.4.2"
if [[ -f ~/.intel_version ]]; then
INTEL_SRC="https://raw.githubusercontent.com/immich-app/immich/${RELEASE}/machine-learning"
curl -fsSL "${INTEL_SRC}/scripts/install-intel-runtime.sh" -o ./intel-runtime 2>/dev/null ||
@@ -193,7 +193,7 @@ EOF
PNPM_VERSION="$(jq -r '.packageManager | split("@")[1] | split("+")[0]' ${SRC_DIR}/package.json)"
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
export CI=1
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
NODE_VERSION="26" NODE_MODULE="corepack" setup_nodejs
$STD corepack prepare "pnpm@${PNPM_VERSION}" --activate
export PATH="/root/.local/share/pnpm/bin:$PATH"
$STD pnpm config set --global dangerouslyAllowAllBuilds true
@@ -270,7 +270,14 @@ EOF
cp ./packages/plugin-core/manifest.json "$PLUGIN_DIR"
msg_ok "Updated Immich server, web, cli and plugins"
RESTIC_REF="$(grep -oP 'futo-org/restic:sha-\K[0-9a-f]+' "$SRC_DIR"/server/Dockerfile)"
RESTIC_REF="$(grep -oP 'futo-org/restic:sha-\K[0-9a-f]+' "$SRC_DIR"/server/Dockerfile)" || true
if [[ -z "$RESTIC_REF" ]]; then
RESTIC_DIGEST="$(grep -oP 'futo-org/restic:[^@]+@\Ksha256:[0-9a-f]+' "$SRC_DIR"/server/Dockerfile)"
GHCR_TOKEN="$(curl -fsSL 'https://ghcr.io/token?scope=repository:futo-org/restic:pull' | jq -r .token)"
RESTIC_MANIFEST="$(curl -fsSL -H "Authorization: Bearer ${GHCR_TOKEN}" -H 'Accept: application/vnd.oci.image.index.v1+json' "https://ghcr.io/v2/futo-org/restic/manifests/${RESTIC_DIGEST}" | jq -r '[.manifests[] | select(.platform.os == "linux")][0].digest')"
RESTIC_CONFIG="$(curl -fsSL -H "Authorization: Bearer ${GHCR_TOKEN}" -H 'Accept: application/vnd.oci.image.manifest.v1+json' "https://ghcr.io/v2/futo-org/restic/manifests/${RESTIC_MANIFEST}" | jq -r .config.digest)"
RESTIC_REF="$(curl -fsSL -H "Authorization: Bearer ${GHCR_TOKEN}" "https://ghcr.io/v2/futo-org/restic/blobs/${RESTIC_CONFIG}" | jq -r '.config.Labels["org.opencontainers.image.revision"] // empty')"
fi
RESTIC_PROXY_REF="$(grep -oP 'futo-org/backups/restic-proxy:\K[^@]+' "$SRC_DIR"/server/Dockerfile)"
if [[ "$(cat ~/.immich_restic 2>/dev/null)" != "${RESTIC_REF} ${RESTIC_PROXY_REF}" || ! -x /usr/local/bin/restic ]]; then
FUTO_DIR=/opt/staging/futo
+10 -3
View File
@@ -23,7 +23,7 @@ if [[ "$(arch_resolve)" == "amd64" ]] && ! grep -qm1 sse4_2 /proc/cpuinfo; then
exit 236
fi
RELEASE="v3.4.1"
RELEASE="v3.4.2"
if lscpu | grep -q 'GenuineIntel'; then
ML_TYPE="${var_immich_ml_type:-}"
if [[ -z "$ML_TYPE" ]]; then
@@ -250,7 +250,7 @@ msg_ok "Deployed prebuilt image-processing libraries"
fetch_and_deploy_gh_release "Immich" "immich-app/immich" "tarball" "${RELEASE}" "$SRC_DIR"
PNPM_VERSION="$(jq -r '.packageManager | split("@")[1] | split("+")[0]' ${SRC_DIR}/package.json)"
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
NODE_VERSION="26" NODE_MODULE="corepack" setup_nodejs
# Provision the exact pnpm pinned in package.json's packageManager field via corepack instead
# of `npm i -g pnpm@X`, which collides (EEXIST) with the corepack pnpm shim shipped by the
$STD corepack prepare "pnpm@${PNPM_VERSION}" --activate
@@ -318,7 +318,14 @@ cp -r ./packages/plugin-core/dist "$PLUGIN_DIR"/dist
cp ./packages/plugin-core/manifest.json "$PLUGIN_DIR"
msg_ok "Installed Immich Server, Web and Plugin Components"
RESTIC_REF="$(grep -oP 'futo-org/restic:sha-\K[0-9a-f]+' "$SRC_DIR"/server/Dockerfile)"
RESTIC_REF="$(grep -oP 'futo-org/restic:sha-\K[0-9a-f]+' "$SRC_DIR"/server/Dockerfile)" || true
if [[ -z "$RESTIC_REF" ]]; then
RESTIC_DIGEST="$(grep -oP 'futo-org/restic:[^@]+@\Ksha256:[0-9a-f]+' "$SRC_DIR"/server/Dockerfile)"
GHCR_TOKEN="$(curl -fsSL 'https://ghcr.io/token?scope=repository:futo-org/restic:pull' | jq -r .token)"
RESTIC_MANIFEST="$(curl -fsSL -H "Authorization: Bearer ${GHCR_TOKEN}" -H 'Accept: application/vnd.oci.image.index.v1+json' "https://ghcr.io/v2/futo-org/restic/manifests/${RESTIC_DIGEST}" | jq -r '[.manifests[] | select(.platform.os == "linux")][0].digest')"
RESTIC_CONFIG="$(curl -fsSL -H "Authorization: Bearer ${GHCR_TOKEN}" -H 'Accept: application/vnd.oci.image.manifest.v1+json' "https://ghcr.io/v2/futo-org/restic/manifests/${RESTIC_MANIFEST}" | jq -r .config.digest)"
RESTIC_REF="$(curl -fsSL -H "Authorization: Bearer ${GHCR_TOKEN}" "https://ghcr.io/v2/futo-org/restic/blobs/${RESTIC_CONFIG}" | jq -r '.config.Labels["org.opencontainers.image.revision"] // empty')"
fi
RESTIC_PROXY_REF="$(grep -oP 'futo-org/backups/restic-proxy:\K[^@]+' "$SRC_DIR"/server/Dockerfile)"
FUTO_DIR=/opt/staging/futo
rm -rf "$FUTO_DIR"