diff --git a/.github/docker/Dockerfile.musl b/.github/docker/Dockerfile.musl index ae1b9e0..e9af278 100644 --- a/.github/docker/Dockerfile.musl +++ b/.github/docker/Dockerfile.musl @@ -1,6 +1,7 @@ ARG NODE_VERSION=16.20.1 ARG ALPINE_VERSION=3.17.2 +ARG P=amd64 -FROM arm64v8/node:16-alpine AS node +FROM ${P}/node:16-alpine AS node RUN node -v diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index de78fe3..4b51ddb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -88,11 +88,10 @@ jobs: - name: Run Buildx run: | docker buildx create --name builder --bootstrap --use - docker buildx build \ - --platform linux/${{ matrix.linux_arch }} \ - --build-arg="NODE_ARCH=${{ matrix.linux_arch == 'amd64' && 'x64' || matrix.linux_arch }}" \ - --output type=local,dest=./prebuilds,platform-split=false \ - -f ./.github/docker/Dockerfile.musl \ + docker --debug buildx build --progress=plain --no-cache \ + --platform linux/${{ matrix.linux_arch }} --output type=local,dest=./prebuilds,platform-split=false \ + --build-arg="P=${{ matrix.linux_arch == 'amd64' && 'amd64' || 'arm64v8'}}" \ + -f ../.github/docker/Dockerfile.musl \ . # - id: upload