Jelajahi Sumber

build for arm64 v7 and v8

subDesTagesMitExtraKaese 1 tahun lalu
induk
melakukan
07fcca9865
1 mengubah file dengan 10 tambahan dan 10 penghapusan
  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: |