Clean Up Docker Images #47
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: Clean Up Docker Images | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
delete-untagged-docker-images: | |
name: Delete untagged docker images | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Delete old frontend images' | |
uses: actions/delete-package-versions@v4 | |
with: | |
package-name: 'haishin-frontend' | |
package-type: 'container' | |
delete-only-untagged-versions: 'true' | |
- name: 'Delete old backend images' | |
uses: actions/delete-package-versions@v4 | |
with: | |
package-name: 'haishin-backend' | |
package-type: 'container' | |
delete-only-untagged-versions: 'true' |