Skip to content

Commit 8e5c8b2

Browse files
committed
fix: correct indentation and docker-compose command in CI/CD deployment workflow
1 parent b8571b7 commit 8e5c8b2

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,16 @@ jobs:
3636
push: true
3737
tags: ${{ env.FRONTEND_IMAGE }}:latest
3838

39-
- name: Deploy to EC2
39+
- name: Deploy to EC2
4040
uses: appleboy/ssh-action@v1
4141
with:
4242
host: ${{ secrets.EC2_HOST }}
4343
username: ${{ secrets.EC2_USER }}
4444
key: ${{ secrets.EC2_SSH_KEY }}
45+
# Increase timeout to handle the "channel open failed" errors
46+
timeout: 60s
4547
script: |
4648
cd ~/MERN-CHAT-APP
47-
docker compose pull
48-
docker compose up -d --remove-orphans
49+
docker-compose pull
50+
docker-compose up -d --remove-orphans
4951
docker image prune -f

0 commit comments

Comments
 (0)