From 2536dbd62d3158f26e9a503a13154de7e1702b8a Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Wed, 11 Dec 2019 00:56:25 +0100
Subject: [PATCH] [CI] Only run docker build and tests on tags and master

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7ffaae662..a510ee902 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -48,6 +48,9 @@ build_docker:
        --destination $CI_REGISTRY_IMAGE/nginx:$CI_COMMIT_REF_NAME
        --cache=true
        --cleanup
+  only:
+    - master
+    - tags
 
 test_wheel:
   stage: test
@@ -81,6 +84,9 @@ test_docker:
       alias: app
   script:
     - echo true
+  only:
+    - master
+    - tags
 
 deploy_demo-master:
   stage: deploy
-- 
GitLab