Remove Old Images #416
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
name: 'Remove Old Images' | |
on: | |
schedule: | |
- cron: '0 5 * * 1' | |
jobs: | |
remove-images: | |
name: 'Remove old images job except 50 most recent' | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
steps: | |
- uses: actions/delete-package-versions@v4 | |
with: | |
package-name: 'sosialhjelp-avtaler-api/sosialhjelp-avtaler-api' | |
package-type: 'container' | |
min-versions-to-keep: 50 |