summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2021-11-02 12:46:06 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2021-11-02 12:42:01 -0600
commit87bfb30280d738db6270646c76de47e973ffa890 (patch)
tree0f734b77b9ee97aded91d3526253801a6fb35697
parent91e1369365dfeed19fec8a76605932f0f18d234b (diff)
downloadlibnice-87bfb30280d738db6270646c76de47e973ffa890.tar.gz
gitlab-ci: Try to disable CI on non-MR/non-master branches
-rw-r--r--.gitlab-ci.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 28f27b4..656f5d7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,7 +7,8 @@ stages:
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- - if: '$CI_COMMIT_BRANCH'
+ - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
+ - if: $CI_COMMIT_BRANCH == 'latest-release'
default:
image: registry.freedesktop.org/libnice/libnice/centos7/meson-build