From 484ba0dba7855e4274028976d006bd66a9219466 Mon Sep 17 00:00:00 2001
From: Christian Krause <christian.krause@idiv.de>
Date: Wed, 5 Jun 2019 12:10:21 +0200
Subject: [PATCH] deploys only on master and when variables are set

---
 .gitlab-ci.yml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8921155..a122c4a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,3 +27,9 @@ deploy:
       https://portal.idiv.de/nextcloud/public.php/webdav/title.pdf
   environment:
     name: production
+  only:
+    refs:
+      - master
+    variables:
+      - $NEXTCLOUD_PW
+      - $NEXTCLOUD_SHARE
-- 
GitLab