Commit b4fcdca6 authored by Thomas Braun's avatar Thomas Braun
Browse files

.gitlab-ci.yml: Prevent duplicated pipelines

Avoid that by using workflow:rules [1]. We already use that for cppTango.
parent c8033330
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -10,6 +10,13 @@ variables:
    DEBIAN_FRONTEND: noninteractive
    CMAKE_BUILD_TYPE: Debug

# See: https://docs.gitlab.com/ce/ci/yaml/README.html#workflowrules-templates
workflow:
  rules:
    - if: $CI_MERGE_REQUEST_IID
    - if: $CI_COMMIT_TAG
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

# Not possible with parallel, see https://gitlab.com/gitlab-org/gitlab/-/issues/254821
.build-cppTango-template: &build-cppTango-template
  image: debian:bullseye