Skip to content

Commit

Permalink
feat: add prune workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JTaeuber committed May 22, 2024
1 parent f14f951 commit e77c19b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/prune.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Prune GHCR

on:
schedule:
- cron: "0 0 * * *"

permissions:
contents: write
packages: write
security-events: write

jobs:
prune_images:
name: Prune old py-kube-downscaler images
runs-on: ubuntu-latest

steps:
- name: Prune Images
uses: vlaurin/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: ${{ github.repository_owner }}
container: py-kube-downscaler
keep-younger-than: 7 # days
prune-untagged: true
keep-tags-regexes: |
\bdev\b
prune-tags-regexes: |
^commit-
^sha256
- name: Prune Charts
uses: vlaurin/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: ${{ github.repository_owner }}
container: charts/py-kube-downscaler
keep-younger-than: 7 # days
prune-untagged: true

0 comments on commit e77c19b

Please sign in to comment.