From f5ccf52ea921b1c8e81dc92426e704e7011ba334 Mon Sep 17 00:00:00 2001 From: Felipe Lima Date: Thu, 14 Nov 2024 19:51:31 -0500 Subject: [PATCH] added arm7 --- .github/workflows/docker-release.yml | 2 +- just_bin.mjs | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index a59ba66..6678e99 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -39,7 +39,7 @@ jobs: with: context: . file: Dockerfile - platforms: linux/amd64,linux/arm64/v8 + platforms: linux/amd64,linux/arm64/v8,linux/arm/v7 push: true tags: | ${{ env.DOCKER_IMAGE }}:${{ github.ref_name }} diff --git a/just_bin.mjs b/just_bin.mjs index 33a636d..ec36b78 100644 --- a/just_bin.mjs +++ b/just_bin.mjs @@ -1,4 +1,4 @@ -import * as os from "os"; +import * as os from "node:os"; function getPlatform() { const arch = os.arch(); @@ -7,9 +7,11 @@ function getPlatform() { if (platform === "linux") { if (arch === "x64") { return "linux/amd64"; - } else if (arch === "arm64") { + } + if (arch === "arm64") { return "linux/arm64/v8"; - } else if (arch === "arm") { + } + if (arch === "arm") { return "linux/arm/v7"; } }