Skip to content

Commit 3a219a5

Browse files
authored
feat: Print out usage in GiB and MiB and after container builds (#93)
1 parent babe44d commit 3a219a5

3 files changed

Lines changed: 30 additions & 2 deletions

File tree

build-container-image/action.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,14 @@ runs:
8888
echo "::group::docker images"
8989
docker images
9090
echo "::endgroup::"
91+
92+
- name: Print out Disk Usage
93+
if: always()
94+
shell: bash
95+
run: |
96+
echo "::group::Disk usage after build"
97+
echo "In GiB:"
98+
df -h -BGiB /
99+
echo "In MiB:"
100+
df -h -BMiB /
101+
echo "::endgroup::"

build-product-image/action.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,14 @@ runs:
102102
# can be used as action outputs
103103
echo "IMAGE_MANIFEST_TAG=$IMAGE_MANIFEST_TAG" | tee -a "$GITHUB_OUTPUT"
104104
echo "IMAGE_INDEX_MANIFEST_TAG=$IMAGE_INDEX_MANIFEST_TAG" | tee -a "$GITHUB_OUTPUT"
105+
106+
- name: Print out Disk Usage
107+
if: always()
108+
shell: bash
109+
run: |
110+
echo "::group::Disk usage after build"
111+
echo "In GiB:"
112+
df -h -BGiB /
113+
echo "In MiB:"
114+
df -h -BMiB /
115+
echo "::endgroup::"

free-disk-space/action.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ runs:
8484
}
8585
8686
echo "::group::Disk usage before"
87-
df -h /
87+
echo "In GiB:"
88+
df -h -BGiB /
89+
echo "In MiB:"
90+
df -h -BMiB /
8891
echo "::endgroup::"
8992
9093
echo "::group::Parallel cleanup"
@@ -105,5 +108,8 @@ runs:
105108
echo "::endgroup::"
106109
107110
echo "::group::Disk usage after"
108-
df -h /
111+
echo "In GiB:"
112+
df -h -BGiB /
113+
echo "In MiB:"
114+
df -h -BMiB /
109115
echo "::endgroup::"

0 commit comments

Comments
 (0)