This repository has been archived by the owner on Nov 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
39 lines (38 loc) · 1.54 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
job1:
only:
- develop
tags:
- toolbox-dev.bof.nl
script:
- pwd
- cp ~/development.py settings/development.py
- cp -r ~/fonts toolbox/static/
- cp -r ~/uploaded toolbox/static/media/
- cp -r ~/thumbs toolbox/static/media/
- ~/toolboxenv/bin/pip install --upgrade -r requirements.txt
- mkdir toolbox/logs
- ~/toolboxenv/bin/python manage.py migrate --noinput
- ~/toolboxenv/bin/python manage.py migrate toolbox --noinput
- ~/toolboxenv/bin/python manage.py migrate easy_thumbnails --noinput
- ~/toolboxenv/bin/python manage.py migrate filer --noinput
- ~/toolboxenv/bin/python manage.py collectstatic --noinput
- sudo service uwsgi restart
job2:
only:
- master
tags:
- toolbox.bof.nl
script:
- cp ~/production.py settings/production.py
- cp -r ~/fonts toolbox/static/
- cp -r ~/uploaded toolbox/static/media/
- cp -r ~/thumbs toolbox/static/media/
- ~/toolboxenv/bin/pip install --upgrade -r requirements.txt
- mkdir toolbox/logs
- ~/toolboxenv/bin/python manage.py syncdb --noinput
- ~/toolboxenv/bin/python manage.py migrate --noinput
- ~/toolboxenv/bin/python manage.py migrate toolbox --noinput
- ~/toolboxenv/bin/python manage.py migrate easy_thumbnails --noinput
- ~/toolboxenv/bin/python manage.py migrate filer --noinput
- ~/toolboxenv/bin/python manage.py collectstatic --noinput
- sudo service uwsgi restart