diff options
| author | Shelley-BaoYue <baoyue2@huawei.com> | 2023-10-17 21:46:22 +0800 |
|---|---|---|
| committer | Shelley-BaoYue <baoyue2@huawei.com> | 2023-10-18 18:47:22 +0800 |
| commit | b1920e7e353b91ca6afbd2e30549ebfe5f7309fb (patch) | |
| tree | 11ea21a9b70518518d99552719bb8e391a27204d | |
| parent | update integration test tool version (diff) | |
| download | kubeedge-b1920e7e353b91ca6afbd2e30549ebfe5f7309fb.tar.gz | |
cleanup unused images and packages
Signed-off-by: Shelley-BaoYue <baoyue2@huawei.com>
| -rw-r--r-- | .github/workflows/main.yaml | 12 | ||||
| -rwxr-xr-x | cloud/test/integration/scripts/execute.sh | 47 |
2 files changed, 12 insertions, 47 deletions
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index b00ecec99..fe9f61c2d 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -168,6 +168,9 @@ jobs: with: fetch-depth: 0 + - name: cleanup images + run: docker system prune -a -f + - name: Retrieve saved kubeedge/build-tools image uses: actions/download-artifact@v3 with: @@ -223,6 +226,9 @@ jobs: with: fetch-depth: 0 + - name: cleanup images + run: docker system prune -a -f + - name: Retrieve saved kubeedge/build-tools image uses: actions/download-artifact@v3 with: @@ -276,6 +282,9 @@ jobs: run: | containerd config default | sudo tee /etc/containerd/config.toml && sudo systemctl restart containerd.service + - name: cleanup images + run: docker system prune -a -f + - run: make keadm_e2e docker_build: @@ -293,4 +302,7 @@ jobs: with: fetch-depth: 0 + - name: cleanup images + run: docker system prune -a -f + - run: make image diff --git a/cloud/test/integration/scripts/execute.sh b/cloud/test/integration/scripts/execute.sh deleted file mode 100755 index b9bb13211..000000000 --- a/cloud/test/integration/scripts/execute.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash - -# Copyright 2022 The KubeEdge Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License - -ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../../.." && pwd -P)" -TEST_DIR=$(dirname $(dirname "${BASH_SOURCE[0]}")) -APPS_CRD_DIR="${ROOT_DIR}/build/crds/apps" -ENVTEST_DOWNLOAD_DIR="/tmp/envtest/bin" -ENVTEST_BIN_DIR="" - -function do_preparation() { - which setup-envtest &> /dev/null || { - go install sigs.k8s.io/controller-runtime/tools/setup-envtest@v0.0.0-20231013144025-0e9da2e3cab7 - sudo cp $GOPATH/bin/setup-envtest /usr/bin/ - } - - ENVTEST_BIN_DIR=$(setup-envtest use 1.22.1 --bin-dir=${ENVTEST_DOWNLOAD_DIR} -p path) - - which ginkgo &>/dev/null || { - go install github.com/onsi/ginkgo/ginkgo@latest - sudo cp $GOPATH/bin/ginkgo /usr/bin/ - } -} - -function run_test() { - modpkg="$(head -1 ${ROOT_DIR}/go.mod | awk '{print $2}')"/cloud/test/integration/controllermanager - ldflags="-X ${modpkg}.appsCRDDirectoryPath=${APPS_CRD_DIR} \ - -X ${modpkg}.envtestBinDir=${ENVTEST_BIN_DIR}" - - ginkgo --ldflags "${ldflags}" -v ${TEST_DIR}/controllermanager -} - -do_preparation - -run_test |
