diff options
author | Jordan Petridis <jordan@centricular.com> | 2020-12-16 17:16:39 +0200 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-01-27 13:15:07 +0000 |
commit | d5136450c2456ce369c6516f8604bd0e9b927e63 (patch) | |
tree | efe16f349e93c60b6f98349c72e850aa82a6a8ca | |
parent | dbf14146b95093f217a7295c8a392396821db901 (diff) |
docker/fedora: run git gc after cloning the subprojects
Most of the subprojects specify depth=1 in the wrap file,
so this doesn't have a big effect atm.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/375>
-rw-r--r-- | docker/fedora/prepare.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/fedora/prepare.sh b/docker/fedora/prepare.sh index 60f877d..bc13d9d 100644 --- a/docker/fedora/prepare.sh +++ b/docker/fedora/prepare.sh @@ -238,3 +238,9 @@ rustc --version git clone -b ${DEFAULT_BRANCH} https://gitlab.freedesktop.org/gstreamer/gst-build.git /gst-build/ cd /gst-build meson subprojects download + +# Run git gc to prune unwanted refs and reduce the size of the image +for i in $(find subprojects/ -mindepth 1- maxdepth 1 -type d); +do + git -C $i gc --aggressive || true; +done
\ No newline at end of file |