Skip to content

Commit 937ab5c

Browse files
author
Slingexe
authored
docker-publish-fix7
1 parent 402abb6 commit 937ab5c

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/docker-publish.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,21 @@ jobs:
7171
--tag ghcr.io/${{ env.REPO_NAME }}:${{ env.VERSION }} \
7272
--tag ghcr.io/${{ env.REPO_NAME }}:latest \
7373
--push .
74-
74+
7575
- name: Build and Push Docker Image (DockerHub)
7676
run: |
7777
docker buildx build --platform linux/amd64,linux/arm64 \
7878
--tag ${{ env.REPO_NAME }}:${{ env.VERSION }} \
7979
--tag ${{ env.REPO_NAME }}:latest \
8080
--push .
8181
82+
- name: Clean up unused Docker images
83+
run: |
84+
# Remove untagged (dangling) images
85+
docker image prune -f
86+
# Clean up BuildKit cache (optional but helpful)
87+
docker builder prune -f
88+
8289
- name: Retag and Push Previous Version (DockerHub)
8390
if: env.PREV_VERSION != ''
8491
run: |

0 commit comments

Comments
 (0)