diff --git a/.github/workflows/github-cleanup.yml b/.github/workflows/github-cleanup.yml new file mode 100644 index 0000000..5c106b4 --- /dev/null +++ b/.github/workflows/github-cleanup.yml @@ -0,0 +1,27 @@ +--- +name: github-cleanup +on: + schedule: + - cron: '30 2 * * *' + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: +env: + REGISTRY_NAME: ghcr.io + IMAGE_NAME: kamailio + REGISTRY_IMAGE: kamailio/kamailio +jobs: + clean: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - name: Cleanup ghcr + uses: quartx-analytics/ghcr-cleaner@v1 + with: + owner-type: org + token: ${{ secrets.CLEAN_PACKAGES }} + repository-name: ${{ github.repository }} + package-name: ${{ env.IMAGE_NAME }} + delete-untagged: true + dry-run: true