Remove Old Images #570
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: '*/5 * * * 5,6,0' | |
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-innsyn-api/sosialhjelp-innsyn-api' | |
package-type: 'container' | |
min-versions-to-keep: 50 |