always use GitLab Pages, not Artifacts, with index-only mode

If the repo is too large, then it'll hit the GitLab Pages limit.  That is
basically impossible in index-only mode, so it should always use Pages.
This commit is contained in:
Hans-Christoph Steiner 2024-06-11 20:12:46 +02:00
parent 034e83bfca
commit fbb6772e37
2 changed files with 8 additions and 2 deletions

View file

@ -797,7 +797,10 @@ def upload_to_servergitmirror(
local_repo.index.commit("fdroidserver git-mirror")
# only deploy to GitLab Artifacts if too big for GitLab Pages
if common.get_dir_size(fdroid_dir) <= common.GITLAB_COM_PAGES_MAX_SIZE:
if (
is_index_only
or common.get_dir_size(fdroid_dir) <= common.GITLAB_COM_PAGES_MAX_SIZE
):
gitlab_ci_job_name = 'pages'
else:
gitlab_ci_job_name = 'GitLab Artifacts'