.gitlab-ci.yml 473 Bytes
Newer Older
1
job deploy prod:
2 3 4 5 6 7
  stage: deploy
  tags:
    - prod
  only:
    - master
  variables:
8 9
    BASE_PATH: '/var/www/rmn/respect-my-net/'
    VIRTUALENV: '/var/www/rmn/env/'
10
  script:
11 12 13 14 15 16
    - rsync -ruvC ./ ${BASE_PATH}
    - source ${VIRTUALENV}/bin/activate
    - pip install --upgrade pip
    - pip install --upgrade -r nnmon-requirements.txt
    - python ${BASE_PATH}/manage.py migrate
    - python ${BASE_PATH}/manage.py collectstatic --noinput
17
    - touch /var/www/rmn/ready