add TAG mode in tools.func fetch_and_deploy

This commit is contained in:
CanbiZ (MickLesk)
2026-01-29 08:50:12 +01:00
parent 40124eae6d
commit 36eaaea69b
3 changed files with 154 additions and 5 deletions

View File

@@ -112,8 +112,8 @@ EOF
msg_ok "Image-processing libraries up to date"
fi
RELEASE="2.5.0"
if check_for_gh_release "immich" "immich-app/immich" "${RELEASE}"; then
RELEASE="v2.5.2"
if check_for_gh_tag "immich" "immich-app/immich" "${RELEASE}"; then
msg_info "Stopping Services"
systemctl stop immich-web
systemctl stop immich-ml
@@ -165,7 +165,7 @@ EOF
rm -rf "${APP_DIR:?}"/*
)
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "immich" "immich-app/immich" "tarball" "v${RELEASE}" "$SRC_DIR"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "immich" "immich-app/immich" "tag" "${RELEASE}" "$SRC_DIR"
msg_info "Updating Immich web and microservices"
cd "$SRC_DIR"/server