diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d26b2bdbfb..6a45081b9a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -57,11 +57,11 @@ variables: # # This is done by running `ci-fairy generate-template` and possibly bumping # ".default_tag". - ALPINE_TAG: 'tag-21b37b356080' - CENTOS_TAG: 'tag-7397c485797c' - DEBIAN_TAG: 'tag-501092ec7ae8' - FEDORA_TAG: 'tag-7397c485797c' - UBUNTU_TAG: 'tag-501092ec7ae8' + ALPINE_TAG: 'tag-f2be574dc218' + CENTOS_TAG: 'tag-bb4b8be087a5' + DEBIAN_TAG: 'tag-3f002f353fc3' + FEDORA_TAG: 'tag-bb4b8be087a5' + UBUNTU_TAG: 'tag-3f002f353fc3' ALPINE_EXEC: 'bash .gitlab-ci/alpine-install.sh' CENTOS_EXEC: 'bash .gitlab-ci/fedora-install.sh' @@ -360,6 +360,12 @@ check-tree: needs: - "tier1:fedora:40@prep" stage: tier1 + rules: + - if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH + allow_failure: true + - if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH + allow_failure: true + - if: $CI_PIPELINE_SOURCE != 'schedule' script: - date '+%Y%m%d-%H%M%S'; clang-format --version - date '+%Y%m%d-%H%M%S'; black --version diff --git a/.gitlab-ci/ci.template b/.gitlab-ci/ci.template index 5911940996..c73d7f89eb 100644 --- a/.gitlab-ci/ci.template +++ b/.gitlab-ci/ci.template @@ -204,6 +204,12 @@ check-tree: needs: - "tier{{default_distro.tier}}:{{default_distro.name}}:{{default_distro.versions[0]}}@prep" stage: tier1 + rules: + - if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH + allow_failure: true + - if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH + allow_failure: true + - if: $CI_PIPELINE_SOURCE != 'schedule' script: - date '+%Y%m%d-%H%M%S'; clang-format --version - date '+%Y%m%d-%H%M%S'; black --version