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:
job install:
script:
- cd /srv/piphone/
- git clone $CI_BUILD_REPO $CI_PROJECT_NAME
- cd $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;'
- '[[ -d ./.backend_env ]] || virtualenv --python=python3 .backend_env'
- source ./.backend_env/bin/activate
- pip install -r requirements.txt
- pip install -r ./requirements.txt
- deactivate
stage: install
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