Skip to content

Commit 803682c

Browse files
authored
Compute Docker image size with SI units in GHA (#5047)
1 parent 4d9a2b8 commit 803682c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ jobs:
174174
IMAGE="geti-tune-${DEVICE}:${TAG}"
175175
if docker image inspect "$IMAGE" >/dev/null 2>&1; then
176176
size_bytes=$(docker image inspect "$IMAGE" --format='{{.Size}}')
177-
size_readable=$(numfmt --to=iec --format "%.1f" "$size_bytes")
177+
size_readable=$(numfmt --to=si --format "%.2f" "$size_bytes")
178178
echo "| $IMAGE | $size_readable |" >> image-sizes/${DEVICE}.md
179179
fi
180180
done

0 commit comments

Comments
 (0)