mirror of
https://github.com/mailscope/kumomta.git
synced 2026-09-09 03:52:13 +00:00
Keep all tagged, and the last 5 untagged packages. Anything else will get pruned away.
24 lines
516 B
YAML
24 lines
516 B
YAML
name: "Delete Old Packages"
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "50 1 * * *"
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
delete-old-docker:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/delete-package-versions@v4
|
|
with:
|
|
package-name: kumomta
|
|
min-versions-to-keep: 5
|
|
delete-only-untagged-versions: true
|
|
package-type: container
|