2022-03-01 05:50:01 +08:00
|
|
|
name: Purge untagged images from GHCR
|
2022-03-01 05:47:23 +08:00
|
|
|
|
|
|
|
on:
|
2022-03-09 06:32:50 +08:00
|
|
|
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
|
2022-03-09 06:32:50 +08:00
|
|
|
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
|
2022-03-09 06:32:50 +08:00
|
|
|
dry-run: false # Dry-run first, then change to `false`
|
2022-03-01 05:50:01 +08:00
|
|
|
untagged: true
|
|
|
|
|