Skip to content

Delete old container images #117

Delete old container images

Delete old container images #117

Workflow file for this run

name: Delete old container images
on:
schedule:
- cron: "0 0 * * *"
jobs:
clean_ghcr:
name: Delete untagged container images
runs-on: ubuntu-latest
steps:
# backend, cypress, database, frontend, frontend-lighthouse, nginx
- uses: actions/delete-package-versions@v4
with:
package-name: 'prime-simplereport/backend'
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'
- uses: actions/delete-package-versions@v4
with:
package-name: 'prime-simplereport/cypress'
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'
- uses: actions/delete-package-versions@v4
with:
package-name: 'prime-simplereport/database'
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'
- uses: actions/delete-package-versions@v4
with:
package-name: 'prime-simplereport/db'
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'
- uses: actions/delete-package-versions@v4
with:
package-name: 'prime-simplereport/frontend'
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'
- uses: actions/delete-package-versions@v4
with:
package-name: 'prime-simplereport/frontend-lighthouse'
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'
- uses: actions/delete-package-versions@v4
with:
package-name: 'prime-simplereport/nginx'
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'