Skip to content

Merge pull request #11 from dqrk0jeste/newdb #16

Merge pull request #11 from dqrk0jeste/newdb

Merge pull request #11 from dqrk0jeste/newdb #16

Workflow file for this run

name: Apply new migrations to production
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
DB_NAME: ${{ secrets.DB_NAME }}
DB_HOST: ${{ secrets.DB_HOST }}
DB_PORT: ${{ secrets.DB_PORT }}
DB_USER: ${{ secrets.DB_USER }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
SSL_CERT: ${{ secrets.SSL_CERT }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run migrations
run: |
python manage.py migrate