Commit ebd83994 authored by okhin's avatar okhin 🚴

adding a production job

parent f5a2c232
Pipeline #1114 passed with stages
in 46 seconds
......@@ -36,3 +36,27 @@ job deploy:
tags: [preprod]
only:
- master
job deploy prod:
environment:
prod
variables:
GIT_DIR: '/srv/piphone/campaign/.git'
GIT_WORK_DIR: '/srv/piphone/campaign/'
script:
- git reset --hard
- git pull origin master
- source /srv/piphone/campaign/env/bin/activate
- pip install --upgrade pip
- pip install django
- python /srv/piphone/campaign/setup.py install
- python /srv/piphone/campaign/manage.py migrate
- python /srv/piphone/campaign/manage.py collectstatic --noinput
- python /srv/piphone/campaign/manage.py compilemessages
- touch /srv/piphone/campaign.ready
stage: deploy
tags: [piphone]
only:
- master
when: manual
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