We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c83982e commit 8c9a145Copy full SHA for 8c9a145
.github/workflows/cleanup-ghcr.yaml.yml
@@ -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