From 5940da6d7403aa1ce3dc7662d1075e4352ba077b Mon Sep 17 00:00:00 2001
From: Henrik Askjer <henrik.askjer@uib.no>
Date: Mon, 4 Oct 2021 09:51:29 +0200
Subject: [PATCH] Disable deploy dev with commit tag

---
 .gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1aa54363..38559349 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -54,12 +54,12 @@ deploy-dev:
     - spraaksamlingene_01
   stage: deploy
   rules:
+  - if: $CI_COMMIT_TAG != null
+    when: never
   - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_PIPELINE_SOURCE == 'merge_request_event'
     when: always
   - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE != 'merge_request_event'
     when: manual
-  - if: $CI_COMMIT_TAG == null
-    when: never
   script:
   - rm -rf ~/.aws
   - mv  .aws ~/
-- 
GitLab