Skip to content

Commit

Permalink
dry run image retention
Browse files Browse the repository at this point in the history
  • Loading branch information
unglaublicherdude committed Jan 10, 2024
1 parent 01217cb commit 8e2205e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/image-retention.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Delete old container images

on:
#schedule:
# - cron: "15 * * * *" # every day at midnight
push:
branches:
- container-registry-retention

jobs:
clean-ghcr:
name: Delete old unused container images
runs-on: ubuntu-latest
steps:
- name: Delete 'dev' containers older than a week
uses: snok/container-retention-policy@v2
with:
image-names: scanserver
cut-off: 6 month ago UTC
account-type: org
org-name: GDATASoftwareAG
keep-at-least: 5
dry-run: false
token: ${{ secrets.PAT_CONTAINER_REGISTRY }}

0 comments on commit 8e2205e

Please sign in to comment.