Skip to content

Prune stale images

Prune stale images #33

name: Prune stale images
on:
schedule:
- cron: '50 0 * * *'
workflow_dispatch:
jobs:
prune:
runs-on: ubuntu-latest
permissions:
packages: write
env:
SDK: insights-node
steps:
- name: Prune old temporary images
uses: vlaurin/action-ghcr-prune@0cf7d39f88546edd31965acba78cdcb0be14d641 # v0.6.0
with:
token: ${{ github.token }}
organization: ${{ github.repository_owner }}
container: ${{ env.SDK }}-fit-performer
keep-younger-than: 7 # days
prune-untagged: true
prune-tags-regexes: |
^refs-
^sha-