Skip to content

Commit 8c9a145

Browse files
committed
[github-action] move cleanup task to it's own file
1 parent c83982e commit 8c9a145

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
name: Cleanup GHCR Images
5+
"on":
6+
push:
7+
branches:
8+
- main
9+
workflow_dispatch: {}
10+
permissions:
11+
contents: read
12+
packages: write
13+
jobs:
14+
cleanup:
15+
name: Cleanup old container images in GHCR
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Delete untagged GHCR images
19+
uses: actions/delete-package-versions@v5
20+
with:
21+
package-name: 'openstack-hypervisor-operator'
22+
package-type: 'container'
23+
min-versions-to-keep: 1
24+
delete-only-untagged-versions: 'true'

0 commit comments

Comments
 (0)