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
No related branches found
No related tags found
1 merge request!11Refactor deployment
Pipeline #71728 failed with stages
in 1 minute and 18 seconds
This commit is part of merge request !11. Comments created here will be created in the context of that merge request.
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment