diff options
author | Jordan Petridis <jordan@centricular.com> | 2021-11-30 16:45:07 +0200 |
---|---|---|
committer | Jordan Petridis <jordan@centricular.com> | 2021-11-30 17:01:52 +0200 |
commit | eb33309050d083d90257951272fa0d1217fc729c (patch) | |
tree | 5e2c66f5b3d87db183e18129bce6079afa13fef8 /.gitlab-ci.yml | |
parent | 1ffa79d1aa7b91bb43a52d6d2c8ec863e0aef4e3 (diff) | |
download | gstreamer-eb33309050d083d90257951272fa0d1217fc729c.tar.gz |
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>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 411ba7ad06..dc5791db3e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -88,10 +88,14 @@ workflow: # https://docs.gitlab.com/ee/ci/yaml/index.html#switch-between-branch-pipelines-and-merge-request-pipelines rules: - 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" when: never - if: '$CI_COMMIT_TAG' - if: '$CI_COMMIT_BRANCH' + variables: + GIT_FETCH_EXTRA_FLAGS: '--no-tags' # # Global CI policy |