From a511abb6132fb6700c692d26cd99eb3a55439633 Mon Sep 17 00:00:00 2001 From: "Sijie.Sun" Date: Mon, 11 Aug 2025 18:09:16 +0800 Subject: [PATCH] fix docker file (#1219) --- .github/workflows/Dockerfile | 18 ++++-------------- .github/workflows/docker.yml | 2 +- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/Dockerfile b/.github/workflows/Dockerfile index c854f21..780d8fa 100644 --- a/.github/workflows/Dockerfile +++ b/.github/workflows/Dockerfile @@ -8,24 +8,14 @@ WORKDIR /tmp/output RUN ARTIFACT_ARCH=""; \ if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \ ARTIFACT_ARCH="x86_64"; \ + elif [ "$TARGETPLATFORM" = "linux/arm/v6" ]; then \ + ARTIFACT_ARCH="armhf"; \ + elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \ + ARTIFACT_ARCH="armv7hf"; \ elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then \ ARTIFACT_ARCH="aarch64"; \ elif [ "$TARGETPLATFORM" = "linux/riscv64" ]; then \ ARTIFACT_ARCH="riscv64"; \ - elif [ "$TARGETPLATFORM" = "linux/mips" ]; then \ - ARTIFACT_ARCH="mips"; \ - elif [ "$TARGETPLATFORM" = "linux/mipsel" ]; then \ - ARTIFACT_ARCH="mipsel"; \ - elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \ - ARTIFACT_ARCH="armv7hf"; \ - elif [ "$TARGETPLATFORM" = "linux/arm/v6" ]; then \ - ARTIFACT_ARCH="armhf"; \ - elif [ "$TARGETPLATFORM" = "linux/arm/v5" ]; then \ - ARTIFACT_ARCH="arm"; \ - elif [ "$TARGETPLATFORM" = "linux/arm" ]; then \ - ARTIFACT_ARCH="armv7"; \ - elif [ "$TARGETPLATFORM" = "linux/loong64" ]; then \ - ARTIFACT_ARCH="loongarch64"; \ else \ echo "Unsupported architecture: $TARGETPLATFORM"; \ exit 1; \ diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 791a2be..74000d0 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -97,7 +97,7 @@ jobs: uses: docker/build-push-action@v6 with: context: ./docker_context - platforms: linux/amd64,linux/arm64,linux/riscv64,linux/mips,linux/mipsel,linux/arm/v7,linux/arm/v6,linux/arm/v5,linux/arm,linux/loong64 + platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/riscv64 push: true file: .github/workflows/Dockerfile tags: ${{ steps.tags.outputs.tags }}