From 394e69aaf2898d9917f550025159ac7795dd4966 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Hrb=C3=A1=C4=8D?= <david@hrbac.cz>
Date: Thu, 2 Feb 2017 11:48:24 +0100
Subject: [PATCH] Enable deploy only on gitlab.it4i.cz

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 75f664839..712a7d6ec 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -98,6 +98,8 @@ deploy to stage:
   script:
   - chown nginx:nginx site -R
   - rsync -a --delete site/ root@"$SSH_HOST_STAGE":/srv/docs.it4i.cz/devel/$CI_BUILD_REF_NAME/
+  only:
+  - branches@it4i-admins/docs.it4i
 
 deploy to production:
   environment: production
@@ -120,5 +122,5 @@ deploy to production:
   - chown nginx:nginx site -R
   - rsync -a --delete site/ root@"$SSH_HOST_STAGE":/srv/docs.it4i.cz/site/
   only:
-  - master
+  - master@it4i-admins/docs.it4i
   when: manual
-- 
GitLab