From e5583e697ad892a280c8133614c1583271750728 Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Thu, 5 Jan 2023 18:53:25 +0700 Subject: [PATCH] Update target platform --- .github/workflows/build.yml | 2 +- Dockerfile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30c9743..8513fa3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -222,7 +222,7 @@ jobs: if: ${{ steps.vars.outputs.HAS_SECRET_TOKEN }} uses: docker/build-push-action@v3 with: - platforms: linux/amd64,linux/arm/v7,linux/arm/v6,linux/arm64 + platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/386 push: true file: Dockerfile tags: ${{ steps.tags.outputs.TAGS }} diff --git a/Dockerfile b/Dockerfile index c99ec15..a7caccf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,8 @@ WORKDIR /usr/local/src/neolink # Build the main program or copy from github build ones COPY . /usr/local/src/neolink -RUN if [ -f "${TARGETPLATFORM}/neolink" ]; then \ +RUN echo "TARGETPLATFORM; ${TARGETPLATFORM}"; \ + if [ -f "${TARGETPLATFORM}/neolink" ]; then \ mkdir -p /usr/local/src/neolink/target/release/; \ cp "${TARGETPLATFORM}/neolink" "/usr/local/src/neolink/target/release/neolink"; \ else \