Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
kumanik authored Feb 7, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent d5231d4 commit 7f1942b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -42,12 +42,14 @@ jobs:
- name: Run check
run: python manage.py check
- name: Running remote SSH commands
uses: JimCronqvist/action-ssh@master
uses: appleboy/ssh-action@master
with:
hosts: ${{ secrets.HOST }}
privatekey: ${{ secrets.SSHKEY }}
command: |
cd ~/www/glug_website_backend
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
cd /home/glugwebsite/glug_website_backend
git checkout prod
git pull origin prod
sudo docker-compose up -d --build

0 comments on commit 7f1942b

Please sign in to comment.