Browse Source

CI: preparation for setting up scheduled APT repository cleanup

Scan repository for old package versions and remove them to free
used space.
emacs-27
Leonid Plyushch 6 years ago
parent
commit
9976028ae0
  1. 17
      .gitlab-ci.yml

17
.gitlab-ci.yml

@ -9,6 +9,8 @@ stages:
## prevent leaking of sensitive information.
.job_template: &build_job
stage: build
except:
- schedules
script:
- unset BINTRAY_USERNAME
- unset BINTRAY_API_KEY
@ -57,6 +59,8 @@ upload-packages:
stage: deploy
only:
- master@termux-mirror/termux-packages
except:
- schedules
script:
- MODIFIED_PACKAGES=$(./scripts/build/ci/determine_git_changes.sh)
- |
@ -70,3 +74,16 @@ upload-packages:
when:
- runner_system_failure
- unknown_failure
## Remove old versions from the APT repository.
repository-cleanup:
stage: deploy
only:
- schedules
script:
- ./scripts/package_uploader.sh --cleanup $(cd ./packages; echo *)
retry:
max: 2
when:
- runner_system_failure
- unknown_failure

Loading…
Cancel
Save