1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-14 15:46:42 +00:00

CI: preparation for setting up scheduled APT repository cleanup

Scan repository for old package versions and remove them to free
used space.
This commit is contained in:
Leonid Pliushch 2019-03-18 22:55:46 +02:00
parent 1a50f04df2
commit ec84b9ab1d

View File

@ -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