move rules to the main file

This commit is contained in:
Kay0u 2021-08-27 01:11:36 +02:00
parent 2ecce7c233
commit d7afff167e
No known key found for this signature in database
GPG key ID: AE1DCADB6415A156
2 changed files with 8 additions and 7 deletions

View file

@ -26,5 +26,13 @@ workflow:
variables:
YNH_BUILD_DIR: "ynh-build"
.on_default_branch_rules:
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
.on_tags_rules:
rules:
- if: $CI_COMMIT_TAG
include:
- local: .gitlab/ci/*.gitlab-ci.yml

View file

@ -1,7 +0,0 @@
.on_default_branch_rules:
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
.on_tags_rules:
rules:
- if: $CI_COMMIT_TAG