set dry-run false and use schedule trigger

This commit is contained in:
Matthew R Kasun 2022-03-08 17:32:50 -05:00 committed by GitHub
parent 9df0f95f5b
commit 25ad3a8d63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,9 @@
name: Purge untagged images from GHCR
on:
workflow_dispatch
workflow_dispatch:
schedule:
- cron: '1 1 1 * *'
jobs:
purge:
runs-on: ubuntu-latest
@ -15,7 +16,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
organization: gravitl
container: netmaker
dry-run: true # Dry-run first, then change to `false`
dry-run: false # Dry-run first, then change to `false`
untagged: true
- name: Prune Netclient
uses: vlaurin/action-ghcr-prune@main
@ -23,6 +24,6 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
organization: gravitl
container: netclient
dry-run: true # Dry-run first, then change to `false`
dry-run: false # Dry-run first, then change to `false`
untagged: true