Commit 8dcdfdbb authored by okhin's avatar okhin
Browse files

Added a deploy job for preprod

parent d45a01d7
Pipeline #1040 failed with stages
in 2 minutes and 6 seconds
......@@ -48,3 +48,20 @@ static build:
paths:
- static/
expire_in: 1 day
deploy preprod:
variables:
BASE_PATH: /srv/rp2/src/
VIRTUALENV: /srv/rp2/rp2-env
stage: deploy
script:
- rsync -ruvC ./ ${BASE_PATH}
- source ${VIRTUALENV}/bin/activate
- pip install --upgrade pip
- pip install --upgrade requirements.txt
- pip install --upgarde requirements-dev.txt
- echo "DEBUG = True" > ${BASE_PATH}/project/settings/env.py
- echo "SECRET_KEY = '$(pwgen 20 1)'" >> ../project/settings/env.py
- $[BASE_PATH}/manage.py migrate
- touch ${BASE_PATH}/ready
tags: [preprod]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment