Forráskód Böngészése

fix: add safe directory for build pkg (#1977)

Signed-off-by: xjasonlyu <xjasonlyu@gmail.com>
Jason Lyu 1 éve
szülő
commit
78bef0b3f4
1 módosított fájl, 2 hozzáadás és 6 törlés
  1. 2 6
      .github/workflows/build_packages.yaml

+ 2 - 6
.github/workflows/build_packages.yaml

@@ -38,11 +38,7 @@ jobs:
     - uses: actions/checkout@v3
       with:
         fetch-depth: 0
-    - uses: docker/setup-buildx-action@v2
     - uses: docker/setup-qemu-action@v2
-      with:
-        image: tonistiigi/binfmt:latest
-        platforms: all
     - uses: docker/setup-buildx-action@v2
     - name: build
       if: matrix.os == 'debian'
@@ -53,7 +49,7 @@ jobs:
         --env KUIPER_SOURCE='/ekuiper' \
         --platform ${{ matrix.arch }} \
         ghcr.io/lf-edge/ekuiper/base:${{ matrix.golang }}-${{ matrix.os }} \
-        bash -euc "make pkg && make pkg_core && .github/scripts/test.sh"
+        bash -euc "git config --global --add safe.directory /ekuiper && make pkg && make pkg_core && .github/scripts/test.sh"
     - name: build
       if: matrix.os == 'centos'
       run: |
@@ -229,7 +225,7 @@ jobs:
             --workdir /ekuiper \
             --platform ${{ matrix.arch }} \
             ghcr.io/lf-edge/ekuiper/base:${{ matrix.golang }}-${{ matrix.os[0] }} \
-            bash -euc "make ${{ matrix.plugin }}"
+            bash -euc "git config --global --add safe.directory /ekuiper && make ${{ matrix.plugin }}"
     - name: Build ekuiper image
       uses: docker/build-push-action@v3
       if: matrix.arch == 'linux/amd64'