Skip to content

Commit

Permalink
Github cleanup action
Browse files Browse the repository at this point in the history
  • Loading branch information
splattner committed Sep 27, 2023
1 parent 46eab30 commit fdcba78
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Cleanup

on: workflow_dispatch

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}


jobs:
cleanup-images:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/delete-package-versions@v4
with:
package-name: goucrt
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'

2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker
name: Build

on:
push:
Expand Down

0 comments on commit fdcba78

Please sign in to comment.