build: fix 'fatal: unsafe repository ...' on ubuntu20.04
This commit is contained in:
parent
cd5889fb92
commit
4655d55192
|
@ -19,6 +19,8 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # need full history
|
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)
|
- name: Check relup (ce)
|
||||||
if: endsWith(github.repository, 'emqx')
|
if: endsWith(github.repository, 'emqx')
|
||||||
run: ./scripts/update-appup.sh emqx --check
|
run: ./scripts/update-appup.sh emqx --check
|
||||||
|
|
|
@ -29,6 +29,8 @@ jobs:
|
||||||
else
|
else
|
||||||
echo "EMQX_NAME=emqx" >> $GITHUB_ENV
|
echo "EMQX_NAME=emqx" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
|
- name: fix-git-unsafe-repository
|
||||||
|
run: git config --global --add safe.directory /__w/emqx/emqx
|
||||||
- name: build zip packages
|
- name: build zip packages
|
||||||
run: make ${EMQX_NAME}-zip
|
run: make ${EMQX_NAME}-zip
|
||||||
- name: build deb/rpm packages
|
- name: build deb/rpm packages
|
||||||
|
|
|
@ -45,6 +45,8 @@ jobs:
|
||||||
if make emqx-ee --dry-run > /dev/null 2>&1; then
|
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"
|
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
|
fi
|
||||||
|
- name: fix-git-unsafe-repository
|
||||||
|
run: docker exec -i erlang sh -c "git config --global --add safe.directory /emqx"
|
||||||
- name: run test cases
|
- name: run test cases
|
||||||
run: |
|
run: |
|
||||||
docker exec -i erlang sh -c "make ensure-rebar3"
|
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
|
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"
|
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
|
fi
|
||||||
|
- name: fix-git-unsafe-repository
|
||||||
|
run: docker exec -i erlang sh -c "git config --global --add safe.directory /emqx"
|
||||||
- name: run test cases
|
- name: run test cases
|
||||||
run: |
|
run: |
|
||||||
printenv | grep "^EMQX_" > .env
|
printenv | grep "^EMQX_" > .env
|
||||||
|
@ -197,6 +201,8 @@ jobs:
|
||||||
if make emqx-ee --dry-run > /dev/null 2>&1; then
|
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"
|
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
|
fi
|
||||||
|
- name: fix-git-unsafe-repository
|
||||||
|
run: docker exec -i erlang sh -c "git config --global --add safe.directory /emqx"
|
||||||
- name: run test cases
|
- name: run test cases
|
||||||
run: |
|
run: |
|
||||||
printenv | grep "^EMQX_" > .env
|
printenv | grep "^EMQX_" > .env
|
||||||
|
@ -268,6 +274,8 @@ jobs:
|
||||||
if make emqx-ee --dry-run > /dev/null 2>&1; then
|
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"
|
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
|
fi
|
||||||
|
- name: fix-git-unsafe-repository
|
||||||
|
run: docker exec -i erlang sh -c "git config --global --add safe.directory /emqx"
|
||||||
- name: run test cases
|
- name: run test cases
|
||||||
run: |
|
run: |
|
||||||
export EMQX_AUTH__PGSQL__USERNAME=root \
|
export EMQX_AUTH__PGSQL__USERNAME=root \
|
||||||
|
@ -391,6 +399,8 @@ jobs:
|
||||||
if make emqx-ee --dry-run > /dev/null 2>&1; then
|
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"
|
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
|
fi
|
||||||
|
- name: fix-git-unsafe-repository
|
||||||
|
run: docker exec -i erlang sh -c "git config --global --add safe.directory /emqx"
|
||||||
- name: run test cases
|
- name: run test cases
|
||||||
run: |
|
run: |
|
||||||
export EMQX_AUTH__REIDS__PASSWORD=public
|
export EMQX_AUTH__REIDS__PASSWORD=public
|
||||||
|
|
Loading…
Reference in New Issue