From 39255fc000d49709fef7a2edecfd07e431c86ba5 Mon Sep 17 00:00:00 2001 From: hlohaus <983577+hlohaus@users.noreply.github.com> Date: Fri, 24 Jan 2025 13:39:23 +0100 Subject: Enable armv7 build, add timeout for installing packages --- .github/workflows/publish-workflow.yaml | 26 +++++++++++++------------- docker/Dockerfile-armv7 | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish-workflow.yaml b/.github/workflows/publish-workflow.yaml index 0fe7ce6e..6b8112f1 100644 --- a/.github/workflows/publish-workflow.yaml +++ b/.github/workflows/publish-workflow.yaml @@ -57,19 +57,19 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GHCR_PAT }} - # - name: Build and push armv7 image - # uses: docker/build-push-action@v5 - # with: - # context: . - # file: docker/Dockerfile-armv7 - # platforms: linux/arm/v7 - # push: true - # tags: | - # hlohaus789/g4f:latest-armv7 - # hlohaus789/g4f:${{ github.ref_name }}-armv7 - # labels: ${{ steps.metadata.outputs.labels }} - # build-args: | - # G4F_VERSION=${{ github.ref_name }} + - name: Build and push armv7 image + uses: docker/build-push-action@v5 + with: + context: . + file: docker/Dockerfile-armv7 + platforms: linux/arm/v7 + push: true + tags: | + hlohaus789/g4f:latest-armv7 + hlohaus789/g4f:${{ github.ref_name }}-armv7 + labels: ${{ steps.metadata.outputs.labels }} + build-args: | + G4F_VERSION=${{ github.ref_name }} - name: Build and push small images uses: docker/build-push-action@v5 diff --git a/docker/Dockerfile-armv7 b/docker/Dockerfile-armv7 index 9cd19e35..5173d1d7 100644 --- a/docker/Dockerfile-armv7 +++ b/docker/Dockerfile-armv7 @@ -49,7 +49,7 @@ RUN pip install --no-cache-dir -r requirements-min.txt \ --global-option=build_ext \ --global-option=-j8 \ pydantic==${PYDANTIC_VERSION} -RUN cat requirements-slim.txt | xargs -n 1 pip install --no-cache-dir || true +RUN cat requirements-slim.txt | xargs -n 1 timeout 5m pip install --no-cache-dir || true # Remove build packages RUN pip uninstall --yes \ -- cgit v1.2.3