From ed43e4b602cc644f1f2e4bd01acbdac0de71d2d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8D=C3=B1igo=20Huguet?= Date: Fri, 24 Oct 2025 12:48:20 +0200 Subject: [PATCH] ci: fix pages job Fix the rule that triggers this job so it is run each time that a commit is pushed/merged to main. The incorrect rule was doing that it only ran when the *source* branch (or a MR) was called "main". Therefore, it was (almost) never running. Fixes: 69efb4660c26 ('CI: periodically clean image's registry') --- .gitlab-ci.yml | 12 ++++++------ .gitlab-ci/ci.template | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b938a62810..67fcf0264e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -60,11 +60,11 @@ variables: # # This is done by running `ci-fairy generate-template` and possibly bumping # ".default_tag". - ALPINE_TAG: 'tag-722dacf5c4be' - CENTOS_TAG: 'tag-1387a813d200' - DEBIAN_TAG: 'tag-447ddf898453' - FEDORA_TAG: 'tag-1387a813d200' - UBUNTU_TAG: 'tag-447ddf898453' + ALPINE_TAG: 'tag-0c3a6f855fb8' + CENTOS_TAG: 'tag-c1c23df75dda' + DEBIAN_TAG: 'tag-d4bf5db9e214' + FEDORA_TAG: 'tag-c1c23df75dda' + UBUNTU_TAG: 'tag-d4bf5db9e214' ALPINE_EXEC: 'bash .gitlab-ci/alpine-install.sh' CENTOS_EXEC: 'bash .gitlab-ci/fedora-install.sh' @@ -713,7 +713,7 @@ pages: rules: - if: $CI_PIPELINE_SOURCE == 'schedule' when: never - - if: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == 'main' + - if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH dependencies: - "t_fedora:42: [meson+gcc+docs+valgrind]" needs: diff --git a/.gitlab-ci/ci.template b/.gitlab-ci/ci.template index 3af5cac459..4ef3ff9ead 100644 --- a/.gitlab-ci/ci.template +++ b/.gitlab-ci/ci.template @@ -240,7 +240,7 @@ pages: rules: - if: $CI_PIPELINE_SOURCE == 'schedule' when: never - - if: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == 'main' + - if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH dependencies: - "t_{{default_distro.name}}:{{default_distro.versions[0]}}: [meson+gcc+docs+valgrind]" needs: