Skip to content

Merge pull request #729 from inventaire-des-orgues/dependabot/pip/dja… #578

Merge pull request #729 from inventaire-des-orgues/dependabot/pip/dja…

Merge pull request #729 from inventaire-des-orgues/dependabot/pip/dja… #578

Workflow file for this run

name: remote ssh command
on:
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script: |
cd /var/www/portail
source /var/www/pythonenv/bin/activate
git pull
pip3 install -r requirements.txt
python manage.py collectstatic --noinput
python manage.py migrate
sudo systemctl restart nginx
sudo systemctl restart gunicorn