Skip to content

Commit 1624946

Browse files
committed
ci: delete old packages
- add a step in docker-build-and-test to delete old published containers - should delete all but 'main', 'latest' and release containers
1 parent 7d52088 commit 1624946

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/docker-build-and-test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,20 @@ jobs:
4040
'udk2017'
4141
]
4242
steps:
43+
- name: Delete old packages
44+
#uses: actions/delete-package-versions@v5
45+
uses: vpipkt/delete-package-versions@v4
46+
with:
47+
package-name: ${{ matrix.dockerfile }}
48+
package-type: container
49+
num-old-versions-to-delete: 1
50+
#min-versions-to-keep: 45
51+
ignore-versions: '^(main|latest|v(\\d+\\.?)+)$'
52+
# ignore:
53+
# - main
54+
# - latest
55+
# - vX.X.X
56+
4357
- name: Setup python
4458
uses: actions/setup-python@v5
4559
with:

0 commit comments

Comments
 (0)