From c392212c0004e2281086144cd4c8142ef3050d73 Mon Sep 17 00:00:00 2001 From: Kalin Daskalov <kalin.daskalov@vereign.com> Date: Wed, 5 Jun 2024 10:35:54 +0300 Subject: [PATCH] chore: Update .gitlab-ci.yml to exclude tag-triggered pipelinesfor dev --- .gitlab-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index da824f0..43df112 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,7 +51,8 @@ build-dev: tags: - $RUNNER_AMD rules: - - if: '$CI_COMMIT_BRANCH != "main" && $CI_PIPELINE_SOURCE != "merge_request_event"' + # Only run if the branch is not main, the pipeline is not triggered by a merge request and the commit is not a tag + - if: '$CI_COMMIT_BRANCH != "main" && $CI_PIPELINE_SOURCE != "merge_request_event" && $CI_COMMIT_TAG == null' build-stg: extends: .docker-build-dev @@ -67,7 +68,9 @@ deploy-dev: needs: - job: build-dev rules: - - if: '$CI_COMMIT_BRANCH != "main" && $CI_PIPELINE_SOURCE != "merge_request_event"' + # Only run if the branch is not main, the pipeline is not triggered by a merge request and the commit is not a tag + - if: '$CI_COMMIT_BRANCH != "main" && $CI_PIPELINE_SOURCE != "merge_request_event" && $CI_COMMIT_TAG == null' + deploy-stg: extends: .deploy-stg -- GitLab