From 9da447851549b20d12e762d8e180be47f7b7b986 Mon Sep 17 00:00:00 2001 From: mrproliu <741550557@qq.com> Date: Wed, 14 Jun 2023 01:31:48 +0000 Subject: [PATCH] Remove tmp path when building docker (#90) --- .github/workflows/publish-docker.yaml | 2 +- scripts/build/bash/btfgen.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-docker.yaml b/.github/workflows/publish-docker.yaml index d9feb665..734340b6 100644 --- a/.github/workflows/publish-docker.yaml +++ b/.github/workflows/publish-docker.yaml @@ -45,4 +45,4 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push docker images - run: make docker docker.push \ No newline at end of file + run: make docker.push \ No newline at end of file diff --git a/scripts/build/bash/btfgen.sh b/scripts/build/bash/btfgen.sh index 89f6da01..80ecd68a 100644 --- a/scripts/build/bash/btfgen.sh +++ b/scripts/build/bash/btfgen.sh @@ -47,4 +47,7 @@ each_all_bpf_so_file() { ${TMPDIR}/btfhub/tools/btfgen.sh -a ${ARCH} $(each_all_bpf_so_file $FROM) mkdir -p ${OUTPUT} -cp -r ${TMPDIR}/btfhub/custom-archive/* ${OUTPUT} \ No newline at end of file +cp -r ${TMPDIR}/btfhub/custom-archive/* ${OUTPUT} + +# remove the btfhub for save the space +rm -rf $TMPDIR/btfhub \ No newline at end of file