Skip to content
Snippets Groups Projects
Commit bed07122 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

Prevent pipeline from running when there is an active merge request

parent ec83fb31
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,8 @@ build-dev:
- spraaksamlingene_01
stage: build
rules:
- if: $CI_OPEN_MERGE_REQUESTS == null
when: never
- if: $CI_COMMIT_TAG == null
when: always
script:
......@@ -52,6 +54,8 @@ deploy-dev:
- spraaksamlingene_01
stage: deploy
rules:
- if: $CI_OPEN_MERGE_REQUESTS == null
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_PIPELINE_SOURCE == 'merge_request_event'
when: never
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE != 'merge_request_event'
......
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