Fix compose invocation for deploy runner
Build, Push and Deploy / build (push) Successful in 6s
Build, Push and Deploy / deploy (push) Successful in 8s

This commit is contained in:
2026-09-13 16:25:34 +08:00
parent b5a03f7086
commit 807b1252ad
+5 -5
View File
@@ -8,9 +8,9 @@ IMAGE_TAG="${3:-latest}"
cd "$(dirname "$0")"
if docker compose version >/dev/null 2>&1; then
COMPOSE="docker compose"
COMPOSE=(docker compose)
else
COMPOSE="docker-compose"
COMPOSE=(docker-compose)
fi
export COMPOSE_PROJECT_NAME="${APP_NAME}"
@@ -21,6 +21,6 @@ export WORDCLOUD_API_UPSTREAM="${WORDCLOUD_API_UPSTREAM:-http://192.168.31.213:8
export IMAGE_TAG
echo "[deploy] project=${APP_NAME} env=${TARGET_ENV} image_tag=${IMAGE_TAG} port=${APP_PORT}"
"$COMPOSE" pull
"$COMPOSE" up -d --remove-orphans
"$COMPOSE" ps
"${COMPOSE[@]}" pull
"${COMPOSE[@]}" up -d --remove-orphans
"${COMPOSE[@]}" ps