-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into renovate/github.com-google-uuid-1.x
- Loading branch information
Showing
7 changed files
with
80 additions
and
31 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Delete old ghcr images | ||
on: | ||
schedule: | ||
- cron: "15 1 * * *" # every day at 1:15am | ||
workflow_dispatch: | ||
|
||
jobs: | ||
ghcr-cleanup: | ||
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} | ||
name: Delete old vnext images | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Delete older than a month vnext images | ||
uses: snok/container-retention-policy@v2 | ||
with: | ||
image-names: device/* | ||
cut-off: One month ago UTC | ||
account-type: org | ||
org-name: plgd-dev | ||
filter-tags: vnext-* | ||
skip-tags: main,latest | ||
token: ${{ secrets.GHCR_CLEANUP_PAT }} | ||
|
||
- name: Set up Docker Buildx for delete untagged images action | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to GitHub Container Registry for delete untagged images action | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GHCR_CLEANUP_PAT }} | ||
|
||
- name: Delete untagged images with no dependency | ||
uses: Chizkiyahu/delete-untagged-ghcr-action@v3 | ||
with: | ||
repository: ${{ github.repository }} | ||
repository_owner: ${{ github.repository_owner }} | ||
token: ${{ secrets.GHCR_CLEANUP_PAT }} | ||
owner_type: org | ||
untagged_only: true | ||
except_untagged_multiplatform: true |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
"packageRules": [ | ||
{ | ||
"packagePatterns": [ | ||
".+" | ||
"+" | ||
], | ||
"schedule": [ | ||
"on the first day of the month" | ||
|