-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
20 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 |
---|---|---|
@@ -1,21 +1,23 @@ | ||
name: Maintenance | ||
# have to disable this, it's deleting untagged layers that are referenced by manifests | ||
|
||
# Deleting untagged images requires a Personal Access Token, it cannot | ||
# be done with a github action built in token. This is a known limitation. | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * SUN" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
delete-untagged-images: | ||
name: delete untagged images | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: Chizkiyahu/delete-untagged-ghcr-action@v3 | ||
with: | ||
owner_type: org | ||
package_name: kubechecks | ||
token: ${{ secrets.MAINTENANCE_TOKEN }} | ||
untagged_only: true | ||
#name: Maintenance | ||
# | ||
## Deleting untagged images requires a Personal Access Token, it cannot | ||
## be done with a github action built in token. This is a known limitation. | ||
# | ||
#on: | ||
# schedule: | ||
# - cron: "0 0 * * SUN" | ||
# workflow_dispatch: | ||
# | ||
#jobs: | ||
# delete-untagged-images: | ||
# name: delete untagged images | ||
# runs-on: ubuntu-22.04 | ||
# steps: | ||
# - uses: Chizkiyahu/delete-untagged-ghcr-action@v3 | ||
# with: | ||
# owner_type: org | ||
# package_name: kubechecks | ||
# token: ${{ secrets.MAINTENANCE_TOKEN }} | ||
# untagged_only: true |