container pruning
Docker / build (push) Has been cancelled
Details
Docker / build (push) Has been cancelled
Details
This commit is contained in:
parent
01fb80644c
commit
959ea65508
|
@ -0,0 +1,29 @@
|
||||||
|
name: Prune Containers
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '33 6 * * *' # 6:33 UTC every day
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
# Use docker.io for Docker Hub if empty
|
||||||
|
REGISTRY: ghcr.io
|
||||||
|
# github.repository as <account>/<repo>
|
||||||
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions: write-all
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Prune
|
||||||
|
uses: vlaurin/action-ghcr-prune@v0.5.0
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
organization: ${{ github.actor }}
|
||||||
|
container: ${{ env.IMAGE_NAME }}
|
||||||
|
dry-run: true # Dry-run first, then change to `false`
|
||||||
|
keep-younger-than: 2 # days
|
||||||
|
keep-last: 2
|
||||||
|
prune-untagged: true
|
Loading…
Reference in New Issue