Преглед изворни кода

test: add git credentials for enterprise tests

Zaiming Shi пре 4 година
родитељ
комит
2fb8ffa8c2
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      .github/workflows/run_automate_tests.yaml

+ 6 - 0
.github/workflows/run_automate_tests.yaml

@@ -19,6 +19,12 @@ jobs:
     - name: build docker
     - name: build docker
       id: build_docker
       id: build_docker
       run: |
       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
         make docker
         echo "::set-output name=version::$(./pkg-vsn.sh)"
         echo "::set-output name=version::$(./pkg-vsn.sh)"
         if [ -f EMQX_ENTERPRISE ]; then
         if [ -f EMQX_ENTERPRISE ]; then