File tree Expand file tree Collapse file tree 1 file changed +9
-17
lines changed Expand file tree Collapse file tree 1 file changed +9
-17
lines changed Original file line number Diff line number Diff line change @@ -7,19 +7,19 @@ if [[ -z $1 ]]; then
77 exit 1
88fi
99
10- # Clean up some storage capacity in CI runner
10+ # Work around storage limits in GH runners
1111if [[ $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"
2018fi
2119
2220
21+
22+
2323REMOTE_TAG=$1
2424CLUSTER_NAME=${2:- kind}
2525echo 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
You can’t perform that action at this time.
0 commit comments