From 5b515aa7c846e8316007aee69596259a2d4fcda2 Mon Sep 17 00:00:00 2001 From: Sebastian Hahta <joseha@utu.fi> Date: Fri, 13 Dec 2019 12:49:57 +0200 Subject: [PATCH] feature/web service deploy --- .gitlab-ci.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5a81ac8cb..c6173a686 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,7 +8,7 @@ stages: - all # - build # - test -# - deploy + - deploy #cache: # paths: @@ -29,6 +29,20 @@ linux: - make - ctest --output-on-failure +webserver-deploy: + only: + - master + stage: deploy + tags: + - linux + variables: + NODE_SERVER: '10.0.0.9' + script: + - npm install web-service/server + - browserify web-service/public/js/index.js -o web-service/public/js/bundle.js + - rsync -vr --delete web-service/ nodejs@${NODE_SERVER}:/srv/nodejs/web-service + - ssh nodejs@${NODE_SERVER} -- "npm install web-service/server && pm2 restart web-service" + windows: stage: all variables: -- GitLab