From aef3ee4e614a7eec1cbf9f83e8d5f629159282ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 26 May 2023 10:59:35 +0200 Subject: [PATCH] ci: Use named base job to skip git cloning (AKA GIT_STRATEGY: none) It's not clear what it does, so use some clearer naming Part-of: --- .gitlab-ci.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2e93cb287..ddc81a3de 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,6 +15,10 @@ stages: variables: FDO_UPSTREAM_REPO: GNOME/mutter +.skip-git-clone: + variables: + GIT_STRATEGY: none + .mutter.fedora@common: variables: FDO_DISTRIBUTION_VERSION: 38 @@ -165,9 +169,8 @@ check-commit-log: check-merge-request: extends: - .fdo.ci-fairy + - .skip-git-clone stage: review - variables: - GIT_STRATEGY: none script: - if [[ x"$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" != "x" ]] ; then @@ -188,12 +191,11 @@ build-fedora-container@x86_64: extends: - .fdo.container-build@fedora@x86_64 - .mutter.fedora@x86_64 + - .skip-git-clone stage: prepare needs: - check-commit-log - check-merge-request - variables: - GIT_STRATEGY: none build-fedora-container@aarch64: extends: @@ -203,8 +205,7 @@ build-fedora-container@aarch64: needs: - check-commit-log - check-merge-request - variables: - GIT_STRATEGY: none + - .skip-git-clone check-code-style: extends: