ci: ensure _build dir is owned by root

so the git command can run without safe.directory config for
cloned dependencies
This commit is contained in:
Zaiming (Stone) Shi 2022-05-26 23:57:27 +02:00
parent a403c9ff91
commit 94092bc52e
1 changed files with 2 additions and 1 deletions

View File

@ -76,5 +76,6 @@ docker run -i --rm \
-v "$(pwd)":/emqx \
--workdir /emqx \
--platform="linux/$ARCH" \
--user root \
"$BUILDER" \
bash -euc "git config --global --add safe.directory /emqx && make ${PROFILE}-${PKGTYPE} && .ci/build_packages/tests.sh $PROFILE $PKGTYPE"
bash -euc "git config --global --add safe.directory /emqx && chown -R root:root _build && make ${PROFILE}-${PKGTYPE} && .ci/build_packages/tests.sh $PROFILE $PKGTYPE"