浏览代码

build for arm64 v7 and v8

subDesTagesMitExtraKaese 1 年之前
父节点
当前提交
07fcca9865
共有 1 个文件被更改,包括 10 次插入10 次删除
  1. 10 10
      .github/workflows/docker.yml

+ 10 - 10
.github/workflows/docker.yml

@@ -32,7 +32,7 @@ jobs:
         uses: docker/build-push-action@v2
         with:
           context: .
-          platforms: linux/amd64,linux/arm64
+          platforms: linux/amd64,linux/arm64/v7,linux/arm64/v8
           push: true
           tags: ftcaplan/matrix-stt-bot:latest
       -
@@ -40,7 +40,7 @@ jobs:
         uses: docker/build-push-action@v2
         with:
           context: .
-          platforms: linux/amd64,linux/arm64
+          platforms: linux/amd64,linux/arm64/v7,linux/arm64/v8
           push: true
           tags: ftcaplan/matrix-stt-bot:tiny
           build-args: |
@@ -50,27 +50,27 @@ jobs:
         uses: docker/build-push-action@v2
         with:
           context: .
-          platforms: linux/amd64,linux/arm64
+          platforms: linux/amd64,linux/arm64/v7,linux/arm64/v8
           push: true
-          tags: ftcaplan/matrix-stt-bot:small
+          tags: ftcaplan/matrix-stt-bot:base
           build-args: |
-            "PRELOAD_MODEL=small"
+            "PRELOAD_MODEL=base"
       -
         name: Build and push
         uses: docker/build-push-action@v2
         with:
           context: .
-          platforms: linux/amd64,linux/arm64
+          platforms: linux/amd64,linux/arm64/v7,linux/arm64/v8
           push: true
-          tags: ftcaplan/matrix-stt-bot:base
+          tags: ftcaplan/matrix-stt-bot:small
           build-args: |
-            "PRELOAD_MODEL=base"
+            "PRELOAD_MODEL=small"
       -
         name: Build and push
         uses: docker/build-push-action@v2
         with:
           context: .
-          platforms: linux/amd64,linux/arm64
+          platforms: linux/amd64,linux/arm64/v7,linux/arm64/v8
           push: true
           tags: ftcaplan/matrix-stt-bot:medium
           build-args: |
@@ -80,7 +80,7 @@ jobs:
         uses: docker/build-push-action@v2
         with:
           context: .
-          platforms: linux/amd64,linux/arm64
+          platforms: linux/amd64,linux/arm64/v7,linux/arm64/v8
           push: true
           tags: ftcaplan/matrix-stt-bot:large
           build-args: |