Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
chore(ci): add cleanup workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman committed Sep 15, 2024
1 parent 652bc2b commit 8e7a6a6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-silverblue-latest.yml-disabled
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ on:
paths-ignore:
- '**.md'
- 'system_files/kinoite/**'
- '.github/workflows/cleanup**'
push:
branches:
- main
paths-ignore:
- '**.md'
- 'system_files/kinoite/**'
- '.github/workflows/cleanup**'
schedule:
- cron: '40 4 * * *' # 4:40 UTC everyday
workflow_dispatch:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-silverblue-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ on:
paths-ignore:
- '**.md'
- 'system_files/kinoite/**'
- '.github/workflows/cleanup**'
push:
branches:
- main
paths-ignore:
- '**.md'
- 'system_files/kinoite/**'
- '.github/workflows/cleanup**'
schedule:
- cron: '15 5 * * 2' # 5:15 UTC everyday
workflow_dispatch:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/cleanup-old-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Cleanup Old Images
on:
# schedule:
# - cron: '15 5 * * 2' # 5:15 UTC everyday
workflow_dispatch:

jobs:
delete-old-images:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Delete Old Images
uses: dataaxiom/ghcr-cleanup-action@v1.0.11
with:
token: ${{ secrets.GITHUB_TOKEN }}
older-than: 90 days
keep-n-tagged: 10
keep-n-untagged: 10
dry-run: true

0 comments on commit 8e7a6a6

Please sign in to comment.