mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 11:56:39 +08:00
new workflow to purge GHCR
This commit is contained in:
parent
102638434d
commit
3726c00aa1
1 changed files with 27 additions and 0 deletions
27
.github/workflows/purgeGHCR.yml
vendored
Normal file
27
.github/workflows/purgeGHCR.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
Name: Purge untagged images from GHCR
|
||||
|
||||
on:
|
||||
workflow_dispatch
|
||||
|
||||
jobs:
|
||||
purge:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
user: actions/checkout@v2
|
||||
- name: Prune Netmaker
|
||||
uses: vlaurin/action-ghcr-prune@main
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
organization: gravitl
|
||||
container: netmaker
|
||||
dry-run: true # Dry-run first, then change to `false`
|
||||
untagged: true
|
||||
- name: Prune Netclient
|
||||
uses: vlaurin/action-ghcr-prune@main
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
organization: gravitl
|
||||
container: netclient
|
||||
dry-run: true # Dry-run first, then change to `false`
|
||||
untagged: true
|
Loading…
Add table
Reference in a new issue