-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (27 loc) · 824 Bytes
/
cleanup.yml
File metadata and controls
31 lines (27 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: apply container retention
on:
schedule:
- cron: '30 2 * * 0'
workflow_dispatch:
jobs:
cleanup:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Delete all untagged container versions
uses: actions/delete-package-versions@v5
with:
package-name: 'miniflux-digest'
package-type: 'container'
delete-only-untagged-versions: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Prune old semantic version tags, keeping the last 5
uses: actions/delete-package-versions@v5
with:
package-name: 'miniflux-digest'
package-type: 'container'
min-versions-to-keep: 5
ignore-versions: '^(latest)$'
token: ${{ secrets.GITHUB_TOKEN }}