From: Chenghao liu linkmecry@gmail.com
--- .gitlab-ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4f5ed6b68df..d17bacdbe34 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,19 @@ stages: - test - deploy
+# 在这里添加 before_script,与 stages 同级 +before_script: + # 设置 Git 用户信息(修复 rebase 错误) + - git config --global user.email "linkmecry@gmail.com" + - git config --global user.name "Chenghao Liu" + # 你已有的其他配置 + - export BASEDIR="$PWD" + - export CCACHE_BASEDIR="$BASEDIR" + - export CCACHE_DIR="$BASEDIR/ccache" + - export CCACHE_COMPILERCHECK=content + - export PATH="/usr/lib/ccache:$PATH" + - git config --global --add safe.directory $CI_PROJECT_DIR + include: - local: "/tools/gitlab/image.yml" - local: "/tools/gitlab/build.yml"