-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): add a workflow to enforce removal of old images (#32)
* chore(ci): add a workflow to enforce removal of old images GitHub policy is they will remove our packages older than 90 days, but they don't actually. This workflow will self-enforce that to provide confidence that we won't rely on things which may start disappearing sometime. * chore: does not need to be a dry run
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 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,24 @@ | ||
name: Cleanup Old Images | ||
on: | ||
schedule: | ||
- cron: "15 0 * * *" # 0015 UTC everyday | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | ||
|
||
jobs: | ||
delete-older-than-90: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
steps: | ||
- name: Delete Images Older Than 90 Days | ||
uses: dataaxiom/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
packages: asus-kernel,bazzite-kernel,coreos-stable-kernel,coreos-testing-kernel,fsync-ba-kernel,fsync-kernel,main-kernel,surface-kernel | ||
older-than: 90 days | ||
delete-orphaned-images: true | ||
keep-n-tagged: 7 | ||
keep-n-untagged: 7 |
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