.gitlab-ci.yml 710 Bytes
Newer Older
okhin's avatar
okhin committed
1 2 3
before_script:

job install:
4 5
  variables:
    BASE_PATH: /srv/piphone/sip-backend/
6
    VIRTUALENV: /srv/piphone/sip-backend/.sip-backend_env
7 8 9 10 11 12 13 14 15 16 17
  script:
    - rsync -ruvC ./ ${BASE_PATH}
    - source ${VIRTUALENV}/bin/activate
    - pip install --upgrade pip
    - pip install --upgrade -r requirements.txt
  stage: deploy
  tags: [preprod]
  only:
    - master

job production:
okhin's avatar
okhin committed
18
  variables:
19
    BASE_PATH: /srv/piphone/backend/
20
    VIRTUALENV: /srv/piphone/backend/backend-env
okhin's avatar
okhin committed
21
  script:
okhin's avatar
okhin committed
22
    - rsync -ruvC ./ ${BASE_PATH}
okhin's avatar
okhin committed
23 24 25
    - source ${VIRTUALENV}/bin/activate
    - pip install --upgrade pip
    - pip install --upgrade -r requirements.txt
26
  stage: deploy
27
  tags: [piphone]
okhin's avatar
okhin committed
28
  only:
okhin's avatar
okhin committed
29
    - master
30
  when: manual