Skip to content

Commit

Permalink
feat: adding retention policy
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson2427 committed Aug 26, 2024
1 parent 228ab19 commit 79eb065
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/retention.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Retain Images
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 6"

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
clean:
name: Delete package versions
runs-on: ubuntu-latest
steps:
- uses: snok/container-retention-policy@v3
with:
account: ApeWorX
token: ${{ secrets.GITHUB_TOKEN }}
image-names: "ape"
image-tags: "!stable* !latest* !v0.7* !v0.8*"
cut-off: 4w
dry-run: true

0 comments on commit 79eb065

Please sign in to comment.