diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..ca017db --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +image: "python:3.7" + +before_script: + - python --version + - pip install -r requirements.txt + +stages: + - build + - deploy + +build: + stage: build + script: + - virtualenv -p python3 venv + - source venv/bin/activate + - pip install -r requirements.txt + - python manage.py seed_db + +deploy: + stage: deploy + dependencies: + - build + script: + - python wsgi.py