Skip to content

Commit

Permalink
added deploying to EC2 instance
Browse files Browse the repository at this point in the history
  • Loading branch information
ducheharsh committed Aug 1, 2024
1 parent 80505d6 commit 17396b4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,17 @@ jobs:

- name: Verify Pushed Image
run: docker pull ducheharsh/thewallet:latest

- name: Deploy to EC2
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USERNAME }}
key: ${{ secrets.EC2_PRIVATE_KEY }}
script: |
sudo docker pull ducheharsh/thewallet:latest
sudo docker stop thewallet || true
sudo docker rm thewallet || true
sudo docker run -d --name thewallet -p 3005:3000 ducheharsh/thewallet:latest

0 comments on commit 17396b4

Please sign in to comment.