Skip to content

Commit

Permalink
Update action to delete old images (#1290)
Browse files Browse the repository at this point in the history
Update action to delete old images
Signed-off-by: Emiliano Suñé <emiliano.sune@gmail.com>
  • Loading branch information
esune authored Jul 30, 2024
1 parent 7f1204e commit 7fc0369
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/delete_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Delete old container images

on:
schedule:
- cron: '0 2 * * 2' # This job runs every Tuesday
- cron: "0 2 * * 2" # This job runs every Tuesday
workflow_dispatch:

jobs:
Expand All @@ -12,12 +12,10 @@ jobs:
if: github.repository_owner == 'bcgov'
steps:
- name: Delete containers older than a Month
uses: snok/container-retention-policy@v2
uses: snok/container-retention-policy@v3.0.0
with:
account: bcgov
image-names: traction-plugins-acapy, traction-tenant-proxy, traction-tenant-ui
cut-off: One month ago UTC
account-type: org
org-name: ${{ github.repository_owner}}
skip-tags: pr-* , *.*.*
token: ${{ secrets.PAT }}
token-type: 'pat'
cut-off: 1month
tag-selection: untagged
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7fc0369

Please sign in to comment.