-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Martin op iMac
committed
Oct 30, 2023
1 parent
d269c19
commit 5f7abda
Showing
1 changed file
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ jobs: | |
python -m pip install --upgrade pip | ||
pip install pytest | ||
pip install -r requirements.txt | ||
- name: Run tests | ||
run: | | ||
|
@@ -39,9 +39,7 @@ jobs: | |
mkdir -p ~/.ssh | ||
ssh-keyscan 172.233.46.163 >> ~/.ssh/known_hosts | ||
- name: Deploy to Linode | ||
- name: Deploy to Linode | ||
if: ${{ success() }} | ||
run: | | ||
eval "$(ssh-agent -s)" | ||
echo "${{ secrets.SSH_PRIVATE_KEY }}" | ssh-add - | ||
ssh -o "StrictHostKeyChecking no" -A [email protected] 'cd /var/www/html/ && git pull origin main && systemctl restart gunicorn && systemctl restart nginx && gunicorn main:app --bind 0.0.0.0' | ||
ssh [email protected] 'cd /var/www/html/ && git pull origin main && systemctl restart gunicorn && systemctl restart nginx && gunicorn main:app --bind 0.0.0.0' |