Skip to content

try different names and cut off #8

try different names and cut off

try different names and cut off #8

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 6 Month
uses: snok/container-retention-policy@v2
with:
image-names: scanserver
cut-off: 1 week ago UTC
timestamp-to-use: created_at
account-type: org
org-name: GDATASoftwareAG
keep-at-least: 5
dry-run: true
token: ${{ secrets.PAT_CONTAINER_REGISTRY }}