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 9557b64 commit fb5d1fdCopy full SHA for fb5d1fd
.github/workflows/clean-main-images.yml
@@ -0,0 +1,28 @@
1
+name: Cleanup main images
2
+
3
+on:
4
+ schedule:
5
+ - cron: "5 * * * *"
6
+ workflow_dispatch:
7
8
+env:
9
+ REGISTRY: ghcr.io/openmcp-project
10
+ IMAGE_NAME: mcp-ui-frontend
11
+ KEEP_X_IMAGES: 5
12
13
+jobs:
14
+ clean:
15
+ name: "Clean main images"
16
+ runs-on: ubuntu-latest
17
+ permissions:
18
+ packages: write
19
+ steps:
20
+ - name: Delete old main branch images
21
+ uses: actions/delete-package-versions@v5
22
+ with:
23
+ package-name: ${{ env.IMAGE_NAME }}
24
+ package-type: "container"
25
+ # Keep the latest 5 versions *only* from those that are *not* ignored
26
+ min-versions-to-keep: ${{ env.KEEP_X_IMAGES }}
27
+ # Ignore any version that does NOT start with 'main-'
28
+ ignore-versions: "^(?!main-).*$"
0 commit comments