diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 16c8f85a2a04222363952bfe9005a234ae275300..6d4883f823401fd652fe79a1a789bcbf57849df9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,6 +17,8 @@ test-others:
     - git config --global user.email ${GITLAB_USER_EMAIL}
     - git config --global user.name ${GITLAB_USER_ID}
     - git merge origin/master --no-commit --no-ff
+  only:
+    - branches
   except:
     - master
 
@@ -31,10 +33,12 @@ build-master:
   artifacts:
     paths:
       - build/*
-      - ENVIRONMENTS
+      - ./ENVIRONMENTS
     expire_in: 1 hrs
   only:
     - master
+  except:
+    - branches
   environment:
     name: staging
 
@@ -53,6 +57,8 @@ test-and-deploy-master:
   only:
     - tags
     - master
+  exceot:
+    - branches
   artifacts:
     paths:
       - build/*