netmaker/.github/workflows/purgeGHCR.yml

30 lines
800 B
YAML
Raw Normal View History

2022-03-01 05:50:01 +08:00
name: Purge untagged images from GHCR
2022-03-01 05:47:23 +08:00
on:
workflow_dispatch:
schedule:
- cron: '1 1 1 * *'
2022-03-01 05:47:23 +08:00
jobs:
purge:
runs-on: ubuntu-latest
steps:
- name: Checkout
2022-03-01 05:50:01 +08:00
uses: actions/checkout@v2
2022-03-01 05:47:23 +08:00
- name: Prune Netmaker
uses: vlaurin/action-ghcr-prune@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: gravitl
container: netmaker
dry-run: false # Dry-run first, then change to `false`
2022-03-01 05:47:23 +08:00
untagged: true
- name: Prune Netclient
uses: vlaurin/action-ghcr-prune@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: gravitl
container: netclient
dry-run: false # Dry-run first, then change to `false`
2022-03-01 05:50:01 +08:00
untagged: true