From c342269be7b593d1447f0fe60449c95b4dce8795 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20Sko=C5=99epa?= <jakub@skorepa.info>
Date: Thu, 7 Apr 2016 22:05:32 +0200
Subject: [PATCH] Change CI to only trigger build in content repo

---
 .gitlab-ci.yml | 18 ++++--------------
 1 file changed, 4 insertions(+), 14 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d430d9e7..f480880a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,18 +1,8 @@
-before_script:
-  - node --version
-  - ./configure.sh
-
-upload:
+trigger:
   only:
     - master
   script:
-    - ./upload
-
-cache:
-  untracked: true
-  paths:
-    - static/
-    - content/
-
-# Needs following env var: LFTP_PASSWORD
+    - "curl -X POST -F token=$GITLAB_TOKEN -F ref=master https://git.ok1kvk.cz/api/v3/projects/72/trigger/builds"
 
+# needs following env variable: $GITLAB_TOKEN
+    
-- 
GitLab