Skip to content

Commit

Permalink
added arm7
Browse files Browse the repository at this point in the history
  • Loading branch information
felipefdl committed Nov 15, 2024
1 parent 3df8776 commit f5ccf52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
8 changes: 5 additions & 3 deletions just_bin.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as os from "os";
import * as os from "node:os";

function getPlatform() {
const arch = os.arch();
Expand All @@ -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";
}
}
Expand Down

0 comments on commit f5ccf52

Please sign in to comment.