[centipede][base-builder] Properly delete bazel cache (#8494)

Fixes #8468

Co-authored-by: Alan32Liu <donggeliu@google.com>
This commit is contained in:
jonathanmetzman 2022-09-16 04:17:26 +01:00 committed by GitHub
parent 97a68b049b
commit c0f72989f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -36,4 +36,10 @@ echo 'Removing extra stuff leftover to avoid bloating image.'
rm -rf /clang-*.tgz /clang
BAZEL_BIN_REAL_DIR=$(readlink -f $SRC/centipede/bazel-bin)
rm -rf $SRC/centipede/bazel-bin
mkdir -p $SRC/centipede/bazel-bin
mv $BAZEL_BIN_REAL_DIR/{centipede,libcentipede_runner.pic.a} $SRC/centipede/bazel-bin/
rm -rf /root/.cache
echo 'Done.'