Delete old container images #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Delete old container images | |
on: | |
schedule: | |
- cron: "0 2 * * 2" # This job runs every Tuesday | |
workflow_dispatch: | |
jobs: | |
clean-ghcr: | |
name: Delete old unused container images | |
runs-on: ubuntu-22.04 | |
if: github.repository_owner == 'bcgov' | |
steps: | |
- name: Delete containers older than a Month | |
uses: snok/container-retention-policy@v3.0.0 | |
with: | |
account: bcgov | |
image-names: traction-plugins-acapy, traction-tenant-proxy, traction-tenant-ui | |
cut-off: 1month | |
tag-selection: untagged | |
token: ${{ secrets.GITHUB_TOKEN }} |