Skip to content

Commit

Permalink
disable maintenance script
Browse files Browse the repository at this point in the history
  • Loading branch information
djeebus committed Dec 22, 2023
1 parent 0b16fe3 commit 3794ae9
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions .github/workflows/maintenance.yaml
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

0 comments on commit 3794ae9

Please sign in to comment.