test: add git credentials for enterprise tests

This commit is contained in:
Zaiming Shi 2021-11-02 23:12:30 +01:00
parent c6c9ba400e
commit 2fb8ffa8c2
1 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,12 @@ jobs:
- name: build docker
id: build_docker
run: |
if [ -f EMQX_ENTERPRISE ]; then
echo "https://ci%40emqx.io:${{ secrets.CI_GIT_TOKEN }}@github.com" > $HOME/.git-credentials
git config --global credential.helper store
echo "${{ secrets.CI_GIT_TOKEN }}" >> scripts/git-token
make deps-emqx-ee
fi
make docker
echo "::set-output name=version::$(./pkg-vsn.sh)"
if [ -f EMQX_ENTERPRISE ]; then