summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShelley-BaoYue <baoyue2@huawei.com>2023-10-17 21:46:22 +0800
committerShelley-BaoYue <baoyue2@huawei.com>2023-10-17 21:46:22 +0800
commit6ec678f2bf5139f281ba36c13f9fbfaa852a4ff8 (patch)
tree70cf27915e3a57f268a694e7ec7b390df6e78e17
parentupdate integration test tool version (diff)
downloadkubeedge-6ec678f2bf5139f281ba36c13f9fbfaa852a4ff8.tar.gz
cleanup unused images and packages
Signed-off-by: Shelley-BaoYue <baoyue2@huawei.com>
-rw-r--r--.github/workflows/main.yaml12
-rwxr-xr-xtests/scripts/keadm_e2e.sh4
2 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 04fd2f6bc..462d2019b 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -193,6 +193,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:
@@ -252,6 +255,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:
@@ -305,6 +311,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:
@@ -322,4 +331,7 @@ jobs:
with:
fetch-depth: 0
+ - name: cleanup images
+ run: docker system prune -a -f
+
- run: make image
diff --git a/tests/scripts/keadm_e2e.sh b/tests/scripts/keadm_e2e.sh
index 9d8bd758a..6370044aa 100755
--- a/tests/scripts/keadm_e2e.sh
+++ b/tests/scripts/keadm_e2e.sh
@@ -91,6 +91,10 @@ function start_kubeedge() {
sleep 3
kubectl get node | grep edge-node | grep -q -w Ready && break
done
+
+ # cleanup unused images and packages
+ docker rmi kubeedge/cloudcore:$IMAGE_TAG kubeedge/installation-package:$IMAGE_TAG
+ rm cloudcore.tar installation-package.tar
}
function run_test() {