Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: GitHub noreply@github.com Date: Sun, 16 Apr 2023 13:53:01 UTC Commit: d8f49a568b211f8cf3ffc8e0cca701f47330762b https://github.com/geany/infrastructure/commit/d8f49a568b211f8cf3ffc8e0cca70...
Log Message: ----------- Merge pull request #9 from geany/ci_image_cleanup
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).