Skip to content

django version upgrade, fixes for sql injection and dos #40

django version upgrade, fixes for sql injection and dos

django version upgrade, fixes for sql injection and dos #40

Workflow file for this run

name: Build
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
environment: 'Production'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: install ssh keys
run: |
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
ssh-keyscan -H ${{ secrets.SERVER_IP }} > ~/.ssh/known_hosts
- name: Deploy
run: |
ssh ${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_IP }} 'cd ${{ secrets.PATH }} && ./deploy.sh'