We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8571b7 commit 8e5c8b2Copy full SHA for 8e5c8b2
1 file changed
.github/workflows/deploy.yml
@@ -36,14 +36,16 @@ jobs:
36
push: true
37
tags: ${{ env.FRONTEND_IMAGE }}:latest
38
39
- - name: Deploy to EC2
+ - name: Deploy to EC2
40
uses: appleboy/ssh-action@v1
41
with:
42
host: ${{ secrets.EC2_HOST }}
43
username: ${{ secrets.EC2_USER }}
44
key: ${{ secrets.EC2_SSH_KEY }}
45
+ # Increase timeout to handle the "channel open failed" errors
46
+ timeout: 60s
47
script: |
48
cd ~/MERN-CHAT-APP
- docker compose pull
- docker compose up -d --remove-orphans
49
+ docker-compose pull
50
+ docker-compose up -d --remove-orphans
51
docker image prune -f
0 commit comments