Skip to content

Commit

Permalink
buildx: prune images when printing versions
Browse files Browse the repository at this point in the history
We are getting "no space left on device errors".
Try to fix them.

Signed-off-by: Kornilios Kourtis <[email protected]>
  • Loading branch information
kkourt committed Feb 1, 2024
1 parent bfe9639 commit b18db12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/buildx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ jobs:
echo "| --- | --- |" >> /tmp/image-log
sudo mkdir /_images; sudo chmod 777 /_images
for f in $(find . -type f ); do
df -h /
v=$(basename $f)
tag=$(cat $f)
image="quay.io/lvh-images/kind-ci:$v-$tag"
Expand All @@ -317,6 +318,7 @@ jobs:
linux_ver=$(cat /tmp/expect.log | sed -ne 's/^.*Linux version \([^ ]\+\).*$/\1/p')
echo "| ${image} | ${linux_ver} |" | tee -a /tmp/image-log
rm /_images/*
docker image prune -a -f
done
echo 'IMAGE_LOG<<EOF' >> $GITHUB_ENV
cat /tmp/image-log >> $GITHUB_ENV
Expand Down

0 comments on commit b18db12

Please sign in to comment.