From a3ae04e7872516c039def3d2e485079848d91a60 Mon Sep 17 00:00:00 2001
From: coffee <22229618@student.uwa.edu.au>
Date: Sun, 18 Aug 2019 11:37:21 +0800
Subject: [PATCH] restrict CI to testing branches

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 79f1a9d..03a3104 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -45,6 +45,11 @@ deploy_testing:
     name: test/$CI_COMMIT_REF_SLUG
     url: https://$CI_COMMIT_REF_SLUG.test.ucc.asn.au
     on_stop: stop_testing
+  only:
+      - *-test
+      - *-testing
+      - test/*
+      - devops/*
   except:
       - master
       - merge_requests
@@ -84,6 +89,11 @@ stop_testing:
   environment:
     name: test/$CI_COMMIT_REF_SLUG
     action: stop
+  only:
+    - *-test
+    - *-testing
+    - test/*
+    - devops/*
   except: 
     - master
   script:
-- 
GitLab