Skip to content

Commit e011726

Browse files
committed
[github-actions] cleanup untagged images
1 parent fa92027 commit e011726

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/container-registry-ghcr.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,13 @@ jobs:
5454
platforms: linux/amd64,linux/arm64
5555
push: true
5656
tags: ${{ steps.meta.outputs.tags }}
57+
58+
cleanup:
59+
name: Cleanup old container images in GHCR
60+
runs-on: ubuntu-latest
61+
- uses: actions/delete-package-versions@v5
62+
with:
63+
package-name: 'openstack-hypervisor-operator'
64+
package-type: 'container'
65+
min-versions-to-keep: 1
66+
delete-only-untagged-versions: 'true'

0 commit comments

Comments
 (0)