Skip to content

Commit 89e7520

Browse files
committed
ci: update deployment workflow to use 'docker compose' command for improved compatibility
1 parent 4c70007 commit 89e7520

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
username: ${{ secrets.VPS_USER }}
2626
key: ${{ secrets.VPS_SSH_KEY }}
2727
script: |
28-
cd /home/${{ secrets.VPS_USER }}/webdev-bot
28+
cd /home/${{ secrets.VPS_USER }}/webdev-bot-deploy
2929
3030
# Stash any local changes
3131
git stash push -m "Auto-deploy $(date)" 2>/dev/null || true
@@ -42,11 +42,11 @@ jobs:
4242
EOF
4343
4444
# Stop any existing containers
45-
docker-compose down || true
45+
docker compose down || true
4646
4747
# Build and start production container with profile
48-
docker-compose --profile prod up -d --build
48+
docker compose --profile prod up -d --build
4949
5050
# Check status
5151
echo "Deployment completed. Container status:"
52-
docker-compose ps
52+
docker compose ps

0 commit comments

Comments
 (0)