Daily registry cleanup cron #110
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: Daily registry cleanup cron | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
cleanup: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: digitalocean/action-doctl@v2 | |
with: | |
token: ${{ secrets.DIGITALOCEAN_API_TOKEN }} | |
- name: Clean unused images | |
run: node image-clean-up.js | |
- name: Clean up untagged manifests | |
run: doctl registry garbage-collection start --force --include-untagged-manifests |