Skip to content
Snippets Groups Projects
Commit c392212c authored by Kalin Daskalov's avatar Kalin Daskalov
Browse files

chore: Update .gitlab-ci.yml to exclude tag-triggered pipelinesfor dev

parent 93d56483
Branches
Tags
1 merge request!11Refactor deployment
Pipeline #71728 failed
...@@ -51,7 +51,8 @@ build-dev: ...@@ -51,7 +51,8 @@ build-dev:
tags: tags:
- $RUNNER_AMD - $RUNNER_AMD
rules: 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: build-stg:
extends: .docker-build-dev extends: .docker-build-dev
...@@ -67,7 +68,9 @@ deploy-dev: ...@@ -67,7 +68,9 @@ deploy-dev:
needs: needs:
- job: build-dev - job: build-dev
rules: 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: deploy-stg:
extends: .deploy-stg extends: .deploy-stg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment