Skip to content

Commit

Permalink
ci: only retain the 15 most recent images
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehsiao committed Nov 21, 2024
1 parent f1587ae commit 4add35c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/container-retention.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
schedule:
- cron: "0 0 1 * *"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
name: Prune Old Images
env:
# Exclude LFS files
GIT_LFS_SKIP_SMUDGE: 1

jobs:
prune:
runs-on: ubuntu-latest
name:
steps:
- name: prune omakase-toolbox
uses: actions/delete-package-versions@v5
with:
package-name: 'omakase-toolbox'
package-type: 'container'
min-versions-to-keep: 15

0 comments on commit 4add35c

Please sign in to comment.