chore(deploy): новый прод-контур 93.170.12.154, единые deploy task и docs

This commit is contained in:
AidarKC
2026-05-19 16:27:09 +03:00
parent 9c35567389
commit 7986184111
9 changed files with 112 additions and 128 deletions
+2 -38
View File
@@ -2,13 +2,12 @@
set -euo pipefail
SRC_DIR="shine-UI"
REMOTE_HOST="${REMOTE_HOST:-player@shineup.me}"
REMOTE_HOST="${REMOTE_HOST:-player@93.170.12.154}"
REMOTE_BASE_DIR="${REMOTE_BASE_DIR:-/home/player/SHiNE}"
BUILD_VERSION="$(date -u +%Y%m%d%H%M%S)"
VERSION_FILE="VERSION.properties"
export BUILD_VERSION
TMP_DIR="$(mktemp -d)"
TARGET="${1:-prod}"
if [[ ! -f "$VERSION_FILE" ]]; then
echo "ERROR: version file not found: $VERSION_FILE" >&2
@@ -22,43 +21,8 @@ if [[ -z "$CLIENT_VERSION" ]]; then
fi
export CLIENT_VERSION
TARGET_DIR="shine-UI"
TARGET_DIR="SHiNE-UI"
TARGET_URL="https://shineup.me"
case "$TARGET" in
prod|production|main|shineup|shineup.me|shine-UI)
TARGET_DIR="shine-UI"
TARGET_URL="https://shineup.me"
;;
ui_1|ui-1|1|shine-UI_1)
TARGET_DIR="test-UI/shine-UI_1"
TARGET_URL="https://ui-1.shineup.me"
;;
ui_2|ui-2|2|shine-UI_2)
TARGET_DIR="test-UI/shine-UI_2"
TARGET_URL="https://ui-2.shineup.me"
;;
ui_3|ui-3|3|shine-UI_3)
TARGET_DIR="test-UI/shine-UI_3"
TARGET_URL="https://ui-3.shineup.me"
;;
ui_drygmira|ui-drygmira|drygmira|shine-UI_drygmira)
TARGET_DIR="test-UI/shine-UI_drygmira"
TARGET_URL="https://ui-drygmira.shineup.me"
;;
ui_milana|ui-milana|milana|shine-UI_milana)
TARGET_DIR="test-UI/shine-UI_milana"
TARGET_URL="https://ui-milana.shineup.me"
;;
ui_aidar|ui-aidar|aidar|shine-UI_aidar)
TARGET_DIR="test-UI/shine-UI_aidar"
TARGET_URL="https://ui-aidar.shineup.me"
;;
*)
echo "ERROR: unknown target '$TARGET'" >&2
echo "Available targets: prod, ui_1, ui_2, ui_3, ui_drygmira, ui_milana, ui_aidar" >&2
exit 1
;;
esac
REMOTE_DIR="${REMOTE_BASE_DIR}/${TARGET_DIR}"
cleanup() {