We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 402abb6 commit 937ab5cCopy full SHA for 937ab5c
1 file changed
.github/workflows/docker-publish.yaml
@@ -71,14 +71,21 @@ jobs:
71
--tag ghcr.io/${{ env.REPO_NAME }}:${{ env.VERSION }} \
72
--tag ghcr.io/${{ env.REPO_NAME }}:latest \
73
--push .
74
-
+
75
- name: Build and Push Docker Image (DockerHub)
76
run: |
77
docker buildx build --platform linux/amd64,linux/arm64 \
78
--tag ${{ env.REPO_NAME }}:${{ env.VERSION }} \
79
--tag ${{ env.REPO_NAME }}:latest \
80
81
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
89
- name: Retag and Push Previous Version (DockerHub)
90
if: env.PREV_VERSION != ''
91
0 commit comments