Przeglądaj źródła

Stop publishing arm64 image

The arm64 docker image is much slower to build and download models. With
the addition of the extra models, it's now too big to build and push in
Github actions (times out after several hours).

This change removes the arm64 image in favor of just the amd64 image,
which only takes about 9 minutes to build and push.

More discussion at: https://github.com/danielgatis/rembg/discussions/735
Paul Gross 6 miesięcy temu
rodzic
commit
d7ab66ba39
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      .github/workflows/publish_docker.yml

+ 3 - 3
.github/workflows/publish_docker.yml

@@ -8,7 +8,7 @@ on:
 jobs:
 jobs:
   publish_docker:
   publish_docker:
     name: Push Docker image to Docker Hub
     name: Push Docker image to Docker Hub
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-24.04
     steps:
     steps:
       - name: Checkout
       - name: Checkout
         uses: actions/checkout@v4
         uses: actions/checkout@v4
@@ -43,10 +43,10 @@ jobs:
           password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
           password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
 
 
       - name: Build and push
       - name: Build and push
-        uses: docker/build-push-action@v5
+        uses: docker/build-push-action@v6
         with:
         with:
           context: .
           context: .
-          platforms: linux/amd64,linux/arm64
+          platforms: linux/amd64
           push: ${{ github.event_name != 'pull_request' }}
           push: ${{ github.event_name != 'pull_request' }}
           tags: ${{ steps.meta.outputs.tags }}
           tags: ${{ steps.meta.outputs.tags }}
           labels: ${{ steps.meta.outputs.labels }}
           labels: ${{ steps.meta.outputs.labels }}