25 lines
365 B
YAML
25 lines
365 B
YAML
|
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
|