Skip to content

Commit

Permalink
adding closed pr images job to workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Rajpal Chauhan <[email protected]>
  • Loading branch information
rajpalc7 committed Nov 23, 2023
1 parent 84656d4 commit 03671f7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/on_pr_closed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,17 @@ jobs:
continue-on-error: true
run: |
oc delete secret,pvc --selector "app.kubernetes.io/instance"=pr-${{ github.event.number }}-traction
clean-ghcr:
runs-on: ubuntu-20.04
name: Delete closed or stale pr images
steps:
- name: Delete containers
uses: snok/container-retention-policy@v2
with:
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}}
filter-tags: ${{ github.event.number }}
token: ${{ secrets.PACKAGE_DELETE_TOKEN }}

0 comments on commit 03671f7

Please sign in to comment.