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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3024>
This commit is contained in:
Marco Trevisan (Treviño) 2023-05-26 10:59:35 +02:00
parent c472570194
commit aef3ee4e61

View File

@ -15,6 +15,10 @@ stages:
variables: variables:
FDO_UPSTREAM_REPO: GNOME/mutter FDO_UPSTREAM_REPO: GNOME/mutter
.skip-git-clone:
variables:
GIT_STRATEGY: none
.mutter.fedora@common: .mutter.fedora@common:
variables: variables:
FDO_DISTRIBUTION_VERSION: 38 FDO_DISTRIBUTION_VERSION: 38
@ -165,9 +169,8 @@ check-commit-log:
check-merge-request: check-merge-request:
extends: extends:
- .fdo.ci-fairy - .fdo.ci-fairy
- .skip-git-clone
stage: review stage: review
variables:
GIT_STRATEGY: none
script: script:
- if [[ x"$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" != "x" ]] ; - if [[ x"$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" != "x" ]] ;
then then
@ -188,12 +191,11 @@ build-fedora-container@x86_64:
extends: extends:
- .fdo.container-build@fedora@x86_64 - .fdo.container-build@fedora@x86_64
- .mutter.fedora@x86_64 - .mutter.fedora@x86_64
- .skip-git-clone
stage: prepare stage: prepare
needs: needs:
- check-commit-log - check-commit-log
- check-merge-request - check-merge-request
variables:
GIT_STRATEGY: none
build-fedora-container@aarch64: build-fedora-container@aarch64:
extends: extends:
@ -203,8 +205,7 @@ build-fedora-container@aarch64:
needs: needs:
- check-commit-log - check-commit-log
- check-merge-request - check-merge-request
variables: - .skip-git-clone
GIT_STRATEGY: none
check-code-style: check-code-style:
extends: extends: