Skip to content

Commit 05c49a7

Browse files
committed
Clean up debug tasks
1 parent 7975e0e commit 05c49a7

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

web-apps/kind-images.sh

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ if [[ -z $1 ]]; then
77
exit 1
88
fi
99

10-
# Clean up some storage capacity in CI runner
10+
# Work around storage limits in GH runners
1111
if [[ $CI == "true" ]]; then
12-
# Debug storage issues
13-
set -x
14-
docker system df
15-
docker system prune -af
16-
docker system df
17-
lsblk
18-
df -h
19-
set +x
12+
DIR=/mnt/gimme-more-space
13+
sudo mkdir -p $DIR
14+
sudo chown -R $USER:$USER $DIR
15+
TAR_PATH=$DIR/image.tar
16+
else
17+
TAR_PATH="./image.tar"
2018
fi
2119

2220

21+
22+
2323
REMOTE_TAG=$1
2424
CLUSTER_NAME=${2:-kind}
2525
echo Kind cluster name: $CLUSTER_NAME
@@ -34,14 +34,6 @@ for image in $(find_images .); do
3434
# inside a GH runner so do each step manually here instead.
3535
# kind load docker-image -n $CLUSTER_NAME $full_name:$KIND_TAG
3636
# Apparently there's a separate 75G disk at /mnt so try using it.
37-
if [[ $CI == "true" ]]; then
38-
DIR=/mnt/gimme-more-space
39-
sudo mkdir $DIR
40-
sudo chown -R $USER:$USER $DIR
41-
TAR_PATH=$DIR/image.tar
42-
else
43-
TAR_PATH="./image.tar"
44-
fi
4537
docker image save -o $TAR_PATH $full_name:$KIND_TAG
4638
docker image rm $full_name:{$REMOTE_TAG,$KIND_TAG}
4739
kind load image-archive -n $CLUSTER_NAME $TAR_PATH

0 commit comments

Comments
 (0)