Target apps not app
This commit is contained in:
+3
-3
@@ -2,7 +2,7 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
HOST="${ELPRICE_DEPLOY_HOST:-citadel}"
|
HOST="${ELPRICE_DEPLOY_HOST:-citadel}"
|
||||||
APP_DIR="${ELPRICE_DEPLOY_DIR:-/home/pmp/app/elprice}"
|
APP_DIR="${ELPRICE_DEPLOY_DIR:-/home/pmp/apps/elprice}"
|
||||||
IMAGE_NAME="${ELPRICE_IMAGE_NAME:-$(basename "$APP_DIR")-app:latest}"
|
IMAGE_NAME="${ELPRICE_IMAGE_NAME:-$(basename "$APP_DIR")-app:latest}"
|
||||||
PLATFORM="${ELPRICE_PLATFORM:-}"
|
PLATFORM="${ELPRICE_PLATFORM:-}"
|
||||||
FILES=(docker-compose.yml .env .token)
|
FILES=(docker-compose.yml .env .token)
|
||||||
@@ -10,8 +10,8 @@ FILES=(docker-compose.yml .env .token)
|
|||||||
if [[ -z "$PLATFORM" ]]; then
|
if [[ -z "$PLATFORM" ]]; then
|
||||||
remote_arch="$(ssh "$HOST" uname -m)"
|
remote_arch="$(ssh "$HOST" uname -m)"
|
||||||
case "$remote_arch" in
|
case "$remote_arch" in
|
||||||
x86_64|amd64) PLATFORM="linux/amd64" ;;
|
x86_64 | amd64) PLATFORM="linux/amd64" ;;
|
||||||
aarch64|arm64) PLATFORM="linux/arm64" ;;
|
aarch64 | arm64) PLATFORM="linux/arm64" ;;
|
||||||
*)
|
*)
|
||||||
echo "Unsupported target architecture: $remote_arch" >&2
|
echo "Unsupported target architecture: $remote_arch" >&2
|
||||||
echo "Set ELPRICE_PLATFORM manually, e.g. ELPRICE_PLATFORM=linux/amd64" >&2
|
echo "Set ELPRICE_PLATFORM manually, e.g. ELPRICE_PLATFORM=linux/amd64" >&2
|
||||||
|
|||||||
Reference in New Issue
Block a user