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
7
7
exit 1
8
8
fi
9
9
10
- # Clean up some storage capacity in CI runner
10
+ # Work around storage limits in GH runners
11
11
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"
20
18
fi
21
19
22
20
21
+
22
+
23
23
REMOTE_TAG=$1
24
24
CLUSTER_NAME=${2:- kind}
25
25
echo Kind cluster name: $CLUSTER_NAME
@@ -34,14 +34,6 @@ for image in $(find_images .); do
34
34
# inside a GH runner so do each step manually here instead.
35
35
# kind load docker-image -n $CLUSTER_NAME $full_name:$KIND_TAG
36
36
# 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
45
37
docker image save -o $TAR_PATH $full_name :$KIND_TAG
46
38
docker image rm $full_name :{$REMOTE_TAG ,$KIND_TAG }
47
39
kind load image-archive -n $CLUSTER_NAME $TAR_PATH
You can’t perform that action at this time.
0 commit comments