Skip to content

Commit 9da4478

Browse files
authored
Remove tmp path when building docker (#90)
1 parent 87c63a1 commit 9da4478

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/publish-docker.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ jobs:
4545
username: ${{ github.actor }}
4646
password: ${{ secrets.GITHUB_TOKEN }}
4747
- name: Build and push docker images
48-
run: make docker docker.push
48+
run: make docker.push

scripts/build/bash/btfgen.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,7 @@ each_all_bpf_so_file() {
4747

4848
${TMPDIR}/btfhub/tools/btfgen.sh -a ${ARCH} $(each_all_bpf_so_file $FROM)
4949
mkdir -p ${OUTPUT}
50-
cp -r ${TMPDIR}/btfhub/custom-archive/* ${OUTPUT}
50+
cp -r ${TMPDIR}/btfhub/custom-archive/* ${OUTPUT}
51+
52+
# remove the btfhub for save the space
53+
rm -rf $TMPDIR/btfhub

0 commit comments

Comments
 (0)