mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
ci: Avoid fetching tags for build jobs
Avoid fetching tags since we don't need them for builds. Only caveat might be what happens when a pipeline from a tag is triggered Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1400>
This commit is contained in:
parent
1ffa79d1aa
commit
eb33309050
1 changed files with 4 additions and 0 deletions
|
@ -88,10 +88,14 @@ workflow:
|
||||||
# https://docs.gitlab.com/ee/ci/yaml/index.html#switch-between-branch-pipelines-and-merge-request-pipelines
|
# https://docs.gitlab.com/ee/ci/yaml/index.html#switch-between-branch-pipelines-and-merge-request-pipelines
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||||
|
variables:
|
||||||
|
GIT_FETCH_EXTRA_FLAGS: '--no-tags'
|
||||||
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
|
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
|
||||||
when: never
|
when: never
|
||||||
- if: '$CI_COMMIT_TAG'
|
- if: '$CI_COMMIT_TAG'
|
||||||
- if: '$CI_COMMIT_BRANCH'
|
- if: '$CI_COMMIT_BRANCH'
|
||||||
|
variables:
|
||||||
|
GIT_FETCH_EXTRA_FLAGS: '--no-tags'
|
||||||
|
|
||||||
#
|
#
|
||||||
# Global CI policy
|
# Global CI policy
|
||||||
|
|
Loading…
Reference in a new issue