mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
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:
parent
034e83bfca
commit
fbb6772e37
2 changed files with 8 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue