Skip to content

Commit ef41353

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

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

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

Lines changed: 16 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,18 @@ 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+
needs: [build-ubuntu-2004, build-ubuntu-2204, build-ubuntu-2404]
175+
runs-on: ubuntu-latest
176+
steps:
177+
- uses: actions/checkout@v5
178+
179+
- name: Docker Hub Cleanup
180+
uses: lostlink/docker-cleanup@v1.0.1
181+
with:
182+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
183+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
184+
repositories: "gameservermanagers/steamcmd"
185+
#dry-run: false # Set to true for testing

0 commit comments

Comments
 (0)