From ba48e55e4e6e6ac1756c23dbcfed3049da789f29 Mon Sep 17 00:00:00 2001 From: danfengliu Date: Fri, 22 May 2020 04:06:25 +0000 Subject: [PATCH] Move docker prune cmd outside of api common install shell script Signed-off-by: danfengliu --- .github/workflows/CI.yml | 1 + tests/ci/api_common_install.sh | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a5041891f..244c0b99b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -148,6 +148,7 @@ jobs: cd src/github.com/goharbor/harbor env df -h + docker system prune -a -f bash ./tests/showtime.sh ./tests/ci/api_common_install.sh $IP DB - name: script run: | diff --git a/tests/ci/api_common_install.sh b/tests/ci/api_common_install.sh index f962bdc85..c2dcab01a 100755 --- a/tests/ci/api_common_install.sh +++ b/tests/ci/api_common_install.sh @@ -4,7 +4,6 @@ set -x set +e sudo rm -fr /data/* sudo mkdir -p /data -docker system prune -a -f DIR="$(cd "$(dirname "$0")" && pwd)" set -e @@ -38,4 +37,4 @@ for((i=1;i<=30;i++)); do echo $i waiting 10 seconds... sleep 10 curl -k -L -f 127.0.0.1/api/v2.0/systeminfo && break -done \ No newline at end of file +done