Skip to content
Snippets Groups Projects
Commit 4d8a9322 authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

fix : now deploy jobs only run when creating a tag on a main branch

parent e5fb7a11
No related branches found
No related tags found
1 merge request!7fix : disabling windows release & -DWERROR=1 + dependencies fix
......@@ -13,10 +13,21 @@
- when: manual
- allow_failure: false
# creating release jobs only when merging to main
.rules:release:
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_TAG
- if: $CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_TAG && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- allow_failure: false
# deploying created releases
# when creating a commit tag & previous release job was successful
.rules:deploy:
- when: never
- allow_failure: false
- if: $CI_COMMIT_TAG && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: on_success
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