Skip to content

ghcr.io

ghcr.io #716

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: ghcr.io
on:
schedule:
- cron: "21 21 * * *"
workflow_dispatch:
jobs:
clean-ghcr:
name: Delete old unused container images
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Delete 'PR' containers older than one month
uses: snok/[email protected]
with:
account: ${{ github.repository_owner }}
image-names: sensitive-data-archive
image-tags: "!v*"
cut-off: One month ago UTC
keep-n-most-recent: 1
token: ${{ secrets.GHCR_TOKEN }}
timestamp-to-use: updated_at