Skip to content

Commit ec18b2b

Browse files
committed
update: container prune
1 parent 032d583 commit ec18b2b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/prune.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Prune Packages
2+
on: # yamllint disable-line rule:truthy
3+
schedule:
4+
- cron: "0 0 * * *" # every day at midnight, utc
5+
push:
6+
branches:
7+
- "main"
8+
9+
jobs:
10+
delete-package-versions:
11+
permissions:
12+
contents: read
13+
packages: write
14+
name: Delete untagged package versions
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: snok/[email protected]
18+
with:
19+
account: user
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
image-names: "udi-cuda s2i-cuda" # all packages owned by the account
22+
tag-selection: untagged
23+
cut-off: 1h

0 commit comments

Comments
 (0)