diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7ffaae66245c896beaf613338a510098e7a337e9..a510ee90229b88869d568426069fb6e0ed620407 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