Skip to content

Commit

Permalink
Update GitHub clean-up action
Browse files Browse the repository at this point in the history
- always keep the image with the tag 'master'
- in the scheduled clean-up job delete only images that are
at least one month old
  • Loading branch information
Danielius1922 authored and Daniel Adam committed Apr 4, 2023
1 parent 9aeebb0 commit c4dcdaf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ghcr-cleanup.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Delete old ghcr images
on:
schedule:
- cron: "15 1 * * *" # every day at 1:15am
- cron: "15 1 * * *" # every day at 1:15am
pull_request:
types: [closed]

Expand Down Expand Up @@ -29,9 +29,9 @@ jobs:
uses: snok/container-retention-policy@v1
with:
image-names: cloud-server*, iotivity-lite*
cut-off: A hour ago UTC
cut-off: One month ago UTC
account-type: org
org-name: iotivity
filter-tags: vnext-*
skip-tags: vnext-pr*
token: ${{ secrets.GHCR_CLEANUP_PAT }}
skip-tags: vnext-pr*, master
token: ${{ secrets.GHCR_CLEANUP_PAT }}

0 comments on commit c4dcdaf

Please sign in to comment.