Skip to content

Commit c906404

Browse files
committed
fix: adjust indentation and add sleep command in EC2 deployment step
1 parent 8e5c8b2 commit c906404

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +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
4645
timeout: 60s
4746
script: |
4847
cd ~/MERN-CHAT-APP
4948
docker-compose pull
49+
sleep 5
5050
docker-compose up -d --remove-orphans
5151
docker image prune -f

0 commit comments

Comments
 (0)