Skip to content

Commit

Permalink
Update django.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
deigil authored Apr 16, 2024
1 parent 46401f2 commit 9009f25
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up SSH
uses: webfactory/ssh-[email protected]
- name: executing remote ssh commands using ssh key
uses: appleboy/ssh-[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
host: ${{ secrets.ELASTIC_IP }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
stop_script: cd /home/ubuntu/djangobackend && ./checks.sh

- name: Deploy to EC2
run: |
ssh -i $HOME/.ssh/id_rsa ubuntu@${{ secrets.ELASTIC_IP }} "cd /home/ubuntu/djangobackend && ./checks.sh"

0 comments on commit 9009f25

Please sign in to comment.