Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Delete old container images #577

Delete old container images

Delete old container images #577

Workflow file for this run

name: Delete old container images
on:
schedule:
- cron: '0 0 * * *' # every day at midnight
workflow_dispatch:
jobs:
clean-ghcr:
name: Cleanup
runs-on: ubuntu-latest
steps:
- name: Untagged Images (> 1 day)
uses: snok/container-retention-policy@v2
with:
image-names: ione, ione-admin
cut-off: A day ago UTC
account-type: org
org-name: support-pl
untagged-only: true
token: ${{ secrets.PACKAGES_PAT }}
- name: Dev Images (> 2 weeks)
uses: snok/container-retention-policy@v2
with:
image-names: ione, ione-admin
cut-off: 2 weeks ago UTC
account-type: org
org-name: support-pl
filter-tags: dev-*
filter-include-untagged: true
token: ${{ secrets.PACKAGES_PAT }}