Update .gitlab-ci.yml file

This commit is contained in:
Ataxya 2021-10-28 09:04:47 +00:00
parent 25bc34a38f
commit f7644d3760

24
.gitlab-ci.yml Normal file
View File

@ -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