Commit e3ad83c5 authored by okhin's avatar okhin

Updating the deployement if it already exists

parent 7707a52b
Pipeline #56 failed with stage
in 9 seconds
...@@ -8,11 +8,10 @@ stages: ...@@ -8,11 +8,10 @@ stages:
job install: job install:
script: script:
- cd /srv/piphone/ - cd /srv/piphone/
- git clone $CI_BUILD_REPO $CI_PROJECT_NAME - 'if [[ -d $CI_PROJECT_NAME ]]; then cd $CI_PROJECT_NAME; git pull origin master; else git clone $CI_BUILD_REPO $CI_PROJECT_NAME; cd $CI_PROJECT_NAME; fi;'
- cd $CI_PROJECT_NAME
- '[[ -d ./.backend_env ]] || virtualenv --python=python3 .backend_env' - '[[ -d ./.backend_env ]] || virtualenv --python=python3 .backend_env'
- source ./.backend_env/bin/activate - source ./.backend_env/bin/activate
- pip install -r requirements.txt - pip install -r ./requirements.txt
- deactivate - deactivate
stage: install stage: install
tags: tags:
......
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