diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2020-03-10 17:54:10 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2020-03-13 12:47:55 +1000 |
commit | 68cdac7420a92ad27c285b419a31f2901ebac372 (patch) | |
tree | 1f4a46168c5fed8fcea0339fe966dd9943d6938d /.gitlab-ci | |
parent | fc501b78ba6e74b93f98d165d882317dbf2b8ad8 (diff) | |
download | libevdev-68cdac7420a92ad27c285b419a31f2901ebac372.tar.gz |
gitlab CI: expand tag lists to 100 per page
Lets make sure we can delete more than 20 tags at a time.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x | .gitlab-ci/gitlab-container-delete | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci/gitlab-container-delete b/.gitlab-ci/gitlab-container-delete index 97ce69a..506a303 100755 --- a/.gitlab-ci/gitlab-container-delete +++ b/.gitlab-ci/gitlab-container-delete @@ -32,7 +32,7 @@ def delete_images(instance, project_name, repository=None, exclude=None, authfil repos = [r for r in p.repositories.list() if repository is None or repository == r.name] for repo in repos: logger.info('Repository {}'.format(repo.name)) - for tag in repo.tags.list(): + for tag in repo.tags.list(per_page=100): if tag.name != exclude: logger.info('Deleting tag {}:{}'.format(repo.name, tag.name)) tag.delete() |