fix: implement smart docker compose vs legacy docker-compose command fallback for VPS

This commit is contained in:
MythEclipse
2026-05-17 22:08:03 +07:00
parent 88a02f2a66
commit 079c6c3399
2 changed files with 11 additions and 2 deletions
+6 -1
View File
@@ -47,5 +47,10 @@ jobs:
ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no "$VPS_USERNAME@$VPS_HOST" "
cd /opt/imphenbot || exit
echo \"$ENV_FILE\" > .env
docker-compose up -d --build
# Build and restart containers using available docker compose command
if command -v docker-compose &> /dev/null; then
docker-compose up -d --build
else
docker compose up -d --build
fi
"