Merge pull request #8051 from HJianBo/test-ci

build: fix 'fatal: unsafe repository ...' on ubuntu20.04
This commit is contained in:
JianBo He 2022-05-26 13:33:22 +08:00 committed by GitHub
commit 6efa41b346
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View File

@ -19,6 +19,8 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # need full history
- name: fix-git-unsafe-repository
run: git config --global --add safe.directory /__w/emqx/emqx
- name: Check relup (ce)
if: endsWith(github.repository, 'emqx')
run: ./scripts/update-appup.sh emqx --check

View File

@ -29,6 +29,8 @@ jobs:
else
echo "EMQX_NAME=emqx" >> $GITHUB_ENV
fi
- name: fix-git-unsafe-repository
run: git config --global --add safe.directory /__w/emqx/emqx
- name: build zip packages
run: make ${EMQX_NAME}-zip
- name: build deb/rpm packages

View File

@ -45,6 +45,8 @@ jobs:
if make emqx-ee --dry-run > /dev/null 2>&1; then
docker exec -i erlang bash -c "echo \"https://ci%40emqx.io:${{ secrets.CI_GIT_TOKEN }}@github.com\" > /root/.git-credentials && git config --global credential.helper store"
fi
- name: fix-git-unsafe-repository
run: docker exec -i erlang sh -c "git config --global --add safe.directory /emqx"
- name: run test cases
run: |
docker exec -i erlang sh -c "make ensure-rebar3"
@ -115,6 +117,8 @@ jobs:
if make emqx-ee --dry-run > /dev/null 2>&1; then
docker exec -i erlang bash -c "echo \"https://ci%40emqx.io:${{ secrets.CI_GIT_TOKEN }}@github.com\" > /root/.git-credentials && git config --global credential.helper store"
fi
- name: fix-git-unsafe-repository
run: docker exec -i erlang sh -c "git config --global --add safe.directory /emqx"
- name: run test cases
run: |
printenv | grep "^EMQX_" > .env
@ -197,6 +201,8 @@ jobs:
if make emqx-ee --dry-run > /dev/null 2>&1; then
docker exec -i erlang bash -c "echo \"https://ci%40emqx.io:${{ secrets.CI_GIT_TOKEN }}@github.com\" > /root/.git-credentials && git config --global credential.helper store"
fi
- name: fix-git-unsafe-repository
run: docker exec -i erlang sh -c "git config --global --add safe.directory /emqx"
- name: run test cases
run: |
printenv | grep "^EMQX_" > .env
@ -268,6 +274,8 @@ jobs:
if make emqx-ee --dry-run > /dev/null 2>&1; then
docker exec -i erlang bash -c "echo \"https://ci%40emqx.io:${{ secrets.CI_GIT_TOKEN }}@github.com\" > /root/.git-credentials && git config --global credential.helper store"
fi
- name: fix-git-unsafe-repository
run: docker exec -i erlang sh -c "git config --global --add safe.directory /emqx"
- name: run test cases
run: |
export EMQX_AUTH__PGSQL__USERNAME=root \
@ -391,6 +399,8 @@ jobs:
if make emqx-ee --dry-run > /dev/null 2>&1; then
docker exec -i erlang bash -c "echo \"https://ci%40emqx.io:${{ secrets.CI_GIT_TOKEN }}@github.com\" > /root/.git-credentials && git config --global credential.helper store"
fi
- name: fix-git-unsafe-repository
run: docker exec -i erlang sh -c "git config --global --add safe.directory /emqx"
- name: run test cases
run: |
export EMQX_AUTH__REIDS__PASSWORD=public