Skip to content

Commit 3c2e7e8

Browse files
authored
Update publish.yml
1 parent 3dfcda3 commit 3c2e7e8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
tags: |
6363
type=semver,pattern={{version}}
6464
type=semver,pattern={{major}}.{{minor}}
65-
latest
65+
type=raw,value=latest
6666
6767
# Build and push proxy image
6868
- name: Build and push proxy_only Docker image
@@ -77,6 +77,16 @@ jobs:
7777
cache-from: type=gha,scope=proxy
7878
cache-to: type=gha,scope=proxy,mode=max
7979

80+
# Add cleanup steps after proxy build
81+
- name: Clean up disk space after proxy build
82+
run: |
83+
# Remove all unused docker data including stopped containers, unused networks, dangling images, and build cache
84+
docker system prune -af
85+
# Remove all unused build cache
86+
docker builder prune -af
87+
# Optional: If you need more aggressive cleanup
88+
rm -rf /tmp/*
89+
8090
- name: Extract metadata for Docker
8191
id: meta
8292
uses: docker/metadata-action@v5

0 commit comments

Comments
 (0)