Jelajahi Sumber

add arm平台

Jinnrry 2 tahun lalu
induk
melakukan
ef3931ab60
1 mengubah file dengan 15 tambahan dan 0 penghapusan
  1. 15 0
      .github/workflows/docker_build_pre.yml

+ 15 - 0
.github/workflows/docker_build_pre.yml

@@ -30,6 +30,12 @@ jobs:
         env:
           REPOSITORY: '${{ github.repository }}'
 
+      - name: Set up QEMU
+        uses: docker/setup-qemu-action@v3
+
+      - name: Set up Docker Buildx
+        uses: docker/setup-buildx-action@v3
+
       - name: Log in to the Container registry
         uses: docker/login-action@v2.1.0
         with:
@@ -41,6 +47,15 @@ jobs:
         uses: docker/build-push-action@v4
         with:
           context: .
+          platforms: |
+            linux/386
+            linux/amd64
+            linux/arm/v5
+            linux/arm/v7
+            linux/arm64
+            linux/mips64le
+            linux/ppc64le
+            linux/s390x
           push: true
           tags: |
             ${{ env.REGISTRY }}/${{ env.REPOSITORY_LC }}:${{ env.VERSION }}