Skip to content

Commit

Permalink
github: cleanup chgr
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxmaniac committed Nov 14, 2024
1 parent 63a6d02 commit 515cf92
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/github-cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: github-cleanup
on:
schedule:
- cron: '30 2 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
dryrun:
description: dry-run execution, default 'false'
required: true
default: false
type: boolean
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 }}
delete-untagged: true
dry-run: ${{ github.event.inputs.dryrun }}

0 comments on commit 515cf92

Please sign in to comment.