Skip to content

Daily registry cleanup cron #106

Daily registry cleanup cron

Daily registry cleanup cron #106

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