Commit 6fa2d6f6 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

Merge branch 'gitlab-ci-for-client-deployment' into 'dev'

Gitlab ci for client deployment

See merge request !1274
parents 07859187 505d4766
Pipeline #731984 failed with stages
in 26 minutes
......@@ -420,12 +420,13 @@ deploy_client:
- chmod 644 ~/.ssh/known_hosts
script:
- ssh vidjil@$PROD_CLIENT_SERVER "
cd $PROD_CLIENT_PATH && \
git fetch
cd $PROD_CLIENT_PATH
&& git fetch
&& git reset --hard origin/prod-client
&& make germline
&& cp doc/analysis-example.vidjil browser/
&& cd docker
&& docker-compose pull nginx
&& docker-compose down
&& docker-compose up -d nginx"
environment:
......@@ -435,10 +436,12 @@ deploy_client:
- prod-client
tags:
- cidocker
needs:
- deploy_docker
deploy_docker:
stage: deploy_prod
stage: publish_release
script:
- export CUR_DATE=`date +%Y-%m-%d`
- export TYPE=`echo $CI_COMMIT_REF_NAME | awk '{ gsub(/prod-/, "") }{ print $1 }'`
......@@ -458,19 +461,6 @@ deploy_docker:
- web
- docker
deploy_prod:
stage: deploy_prod
script:
- ssh $PROD_CLIENT_SERVER "
cd $PROD_CLIENT_PATH;"
environment:
name: production
url: http://$PROD_CLIENT_SERVER/?data=analysis-example.vidjil
only:
- /^prod-client/
tags:
- web
deploy_germlines:
stage: deploy_prod
script:
......
Supports Markdown
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