Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sun, 19 Mar 2023 14:47:11 UTC Commit: 233186170f02653bacebe418080e3c525fbf8ec7 https://github.com/geany/infrastructure/commit/233186170f02653bacebe418080e3...
Log Message: ----------- CI: Add workflow to cleanup old untagged CI container image versions
Modified Paths: -------------- .github/workflows/package-cleanup.yml
Modified: .github/workflows/package-cleanup.yml 30 lines changed, 30 insertions(+), 0 deletions(-) =================================================================== @@ -0,0 +1,30 @@ +# +# Copyright: 2023, The Geany contributors +# License: GNU GPL v2 or later + +name: Build CI Docker Images + +on: + workflow_dispatch: + schedule: + # Run weekly on Friday + - cron: '34 7 * * FRI' + +jobs: + cleanup: + name: Remove all but the latest $PACKAGES_TO_KEEP untagged versions of the Geany CI Docker image + runs-on: ubuntu-22.04 + permissions: + packages: write + + env: + PACKAGES_TO_KEEP: 5 + DOCKER_IMAGE_NAME: "geany-mingw64-ci" + + steps: + - uses: actions/delete-package-versions@v4 + with: + package-name: ${{ env.DOCKER_IMAGE_NAME }} + package-type: 'container' + min-versions-to-keep: ${{ env.PACKAGES_TO_KEEP }} + delete-only-untagged-versions: 'true'
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).