From efaf959d0ce00606757319f124c8cbac724ab933 Mon Sep 17 00:00:00 2001 From: hlohaus <983577+hlohaus@users.noreply.github.com> Date: Sat, 25 Jan 2025 14:25:08 +0100 Subject: Update bulding and publishing docker image for arm64 Fix async_generator can't be used in 'await' expression on Windows --- .github/workflows/publish-workflow.yaml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to '.github') diff --git a/.github/workflows/publish-workflow.yaml b/.github/workflows/publish-workflow.yaml index 6b8112f1..4d85e2e3 100644 --- a/.github/workflows/publish-workflow.yaml +++ b/.github/workflows/publish-workflow.yaml @@ -42,7 +42,6 @@ jobs: with: images: | hlohaus789/g4f - ghcr.io/${{ github.repository }} - name: Log in to Docker Hub uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a @@ -50,13 +49,6 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GHCR_PAT }} - - name: Build and push armv7 image uses: docker/build-push-action@v5 with: @@ -85,12 +77,24 @@ jobs: build-args: | G4F_VERSION=${{ github.ref_name }} - - name: Build and push big images + - name: Build and push arm64 image + uses: docker/build-push-action@v5 + with: + context: . + file: docker/Dockerfile-slim + platforms: linux/arm64 + push: true + tags: ${{ steps.metadata.outputs.tags }} + labels: ${{ steps.metadata.outputs.labels }} + build-args: | + G4F_VERSION=${{ github.ref_name }} + + - name: Build and push big image uses: docker/build-push-action@v5 with: context: . file: docker/Dockerfile - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 push: true tags: ${{ steps.metadata.outputs.tags }} labels: ${{ steps.metadata.outputs.labels }} -- cgit v1.2.3