From 524916a7f072e1ddef0cd9449678c2489efd6c8e Mon Sep 17 00:00:00 2001
From: Sebastian Hahta <joseha@utu.fi>
Date: Fri, 13 Dec 2019 12:35:18 +0200
Subject: [PATCH] Update .gitlab-ci.yml

---
 .gitlab-ci.yml | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0870eb871..044c97db0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,7 +8,7 @@ stages:
  - all
 # - build
 # - test
-# - deploy
+ - deploy
 
 #cache:
 #  paths:
@@ -28,7 +28,12 @@ linux:
     - cmake .. -DWITH_OPTFLOW=TRUE -DBUILD_CALIBRATION=TRUE -DCMAKE_BUILD_TYPE=Release
     - make
     - ctest --output-on-failure
-    - cd ..
+
+linux:
+  stage: all
+  tags:
+    - linux
+  script:
     - browserify web-service/public/js/index.js -o web-service/public/js/bundle.js
     - rsync -vr --delete web-service/ nodejs@ftlab.utu.fi:/srv/nodejs/web-service
     - ssh nodejs@ftlab.utu.fi -- "npm install web-service/server && pm2 restart web-service"
-- 
GitLab