From 89c12cd5d87def0dc8b5768ad9d9245efb117932 Mon Sep 17 00:00:00 2001
From: Michael Blaschek <michael.blaschek@univie.ac.at>
Date: Mon, 23 Jan 2023 10:39:32 +0000
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f05e35b..43ea29d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,6 +8,8 @@ stages:
     - deploy
 
 build:
+    rules:
+        - if: $CI_COMMIT_MESSAGE =~ /.*build.*/
     stage: build
     before_script:
         - pip install -r requirements.txt
@@ -25,4 +27,4 @@ deploy:
     before_script:
         - apt-get update -qq && apt-get install -y -qq sshpass openssh-client
     script:
-        - sshpass -p "$WOLKE_PASSWORD" scp -oStrictHostKeyChecking=no -r /tmp/cr-site/ $WOLKE_USER@wolke.img.univie.ac.at:/var/www/html/documentation/general/
+        - sshpass -p "$WOLKE_PASSWORD" scp -oStrictHostKeyChecking=no -r ./site/ $WOLKE_USER@wolke.img.univie.ac.at:/var/www/html/documentation/general/
-- 
GitLab