diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5a81ac8cbd6f27bb4388eab11d6d4b1b15875410..c6173a686d387b22961dcd2ee6b90c120dc39631 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: