Slet .github/workflows/cleanup.yml
This commit is contained in:
parent
8d7d28d36b
commit
64f64a2c04
1 changed files with 0 additions and 21 deletions
21
.github/workflows/cleanup.yml
vendored
21
.github/workflows/cleanup.yml
vendored
|
|
@ -1,21 +0,0 @@
|
|||
name: Ryd op i GHCR
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * 0' # Kører hver søndag ved midnat
|
||||
workflow_dispatch: # Gør det muligt at køre den manuelt
|
||||
|
||||
jobs:
|
||||
delete-old-images:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
steps:
|
||||
- name: Slet gamle versioner
|
||||
uses: actions/delete-package-versions@v5
|
||||
with:
|
||||
package-name: 'my-ostree-os' # Skift til dit image navn
|
||||
package-type: 'container'
|
||||
min-versions-to-keep: 50
|
||||
delete-only-untagged-versions: 'false'
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue