fix: adjust ghcrCleanup workflow triggers and properly set package names #103
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: Delete old container images | |
on: | |
push: | |
branches: | |
- alis/ghcr_clean_fix | |
# 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' |