Skip to content

Commit

Permalink
feat(workflows): disable image cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
f-bn authored May 19, 2024
1 parent 552f650 commit 434e07a
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/cleanup-images.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
---
name: Cleanup old container images versions
on:
workflow_dispatch:
schedule:
- cron: '00 4 * * 6' # Every Saturday at 04:00am
jobs:
cleanup:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
package: ['adguard-home','distrobuilder','ferretdb','navidrome','pgbouncer','postgresql','valkey','watchtower']
steps:
- uses: actions/delete-package-versions@v5
with:
owner: ${{ github.repository_owner }}
package-name: ${{ matrix.package }}
package-type: container
token: ${{ secrets.GITHUB_TOKEN }}
min-versions-to-keep: 5
delete-only-untagged-versions: true
#---
#name: Cleanup old container images versions
#on:
# workflow_dispatch:
# schedule:
# - cron: '00 4 * * 6' # Every Saturday at 04:00am
#jobs:
# cleanup:
# runs-on: ubuntu-latest
# permissions:
# contents: read
# packages: write
# strategy:
# matrix:
# package: ['adguard-home','distrobuilder','ferretdb','navidrome','pgbouncer','postgresql','valkey','watchtower']
# steps:
# - uses: actions/delete-package-versions@v5
# with:
# owner: ${{ github.repository_owner }}
# package-name: ${{ matrix.package }}
# package-type: container
# token: ${{ secrets.GITHUB_TOKEN }}
# min-versions-to-keep: 5
# delete-only-untagged-versions: true

0 comments on commit 434e07a

Please sign in to comment.