Skip to content

Commit

Permalink
finally got it right
Browse files Browse the repository at this point in the history
  • Loading branch information
devout-coder committed Sep 7, 2024
1 parent 9672bb4 commit 7af3972
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,10 @@ jobs:
run: |
ssh-keyscan -H ${{ secrets.EC2_HOST }} >> ~/.ssh/known_hosts
- name: SSH into EC2 instance and execute a command
- name: SSH into EC2 instance and pull
run: |
ssh -i ~/.ssh/id_rsa ${{ secrets.EC2_USER }}@${{ secrets.EC2_HOST }}
- name: Pull images and deploy
run: |
cd ~/doneify_dir
docker-compose pull doneify
docker-compose down
docker-compose up -d
cd ~/doneify_dir
docker-compose pull doneify
docker-compose down
docker-compose up -d

0 comments on commit 7af3972

Please sign in to comment.