Skip to content

Commit 6d98ad3

Browse files
committed
feat: test docker cleanup
1 parent 642b669 commit 6d98ad3

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/action-docker-publish.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ jobs:
156156
tags: ${{ steps.meta.outputs.tags }}
157157
labels: ${{ steps.meta.outputs.labels }}
158158

159-
package-cleanup:
159+
github-package-cleanup:
160160
name: Cleanup Old GitHub Packages
161161
needs: [build-ubuntu-2004, build-ubuntu-2204, build-ubuntu-2404]
162162
runs-on: ubuntu-latest
@@ -168,3 +168,17 @@ jobs:
168168
package-type: container
169169
min-versions-to-keep: 1
170170
delete-only-untagged-versions: true
171+
172+
docker-hub-cleanup:
173+
name: Cleanup Old Docker Hub Images
174+
runs-on: ubuntu-latest
175+
steps:
176+
- uses: actions/checkout@v5
177+
178+
- name: Docker Hub Cleanup
179+
uses: lostlink/docker-cleanup@v1
180+
with:
181+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
182+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
183+
repositories: "gameservermanagers/steamcmd"
184+
#dry-run: false # Set to true for testing

0 commit comments

Comments
 (0)