Skip to content

Commit 4521f64

Browse files
committed
enable arm64 and arm 32-bit architectures
1 parent 14f9b00 commit 4521f64

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
steps:
99
- uses: actions/checkout@v2
1010

11+
- uses: docker/setup-buildx-action@v1
12+
1113
- name: Build
1214
run: |
1315
curl --fail --location --silent --output bob https://function61.com/go/turbobob-latest-stable-linux-amd64 && chmod +x bob

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
FROM ubuntu:latest
22

3+
# can't have default values here, otherwise they'd overwrite the buildx-supplied ones
4+
ARG TARGETOS
5+
ARG TARGETARCH
6+
37
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y \
48
xvfb \
59
x11vnc \
@@ -36,4 +40,4 @@ ADD misc/menu.xml /etc/xdg/openbox/
3640

3741
CMD ["/usr/local/bin/screen-server", "run"]
3842

39-
ADD rel/screen-server_linux-amd64 /usr/local/bin/screen-server
43+
ADD rel/screen-server_linux-$TARGETARCH /usr/local/bin/screen-server

turbobob.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@
1616
}
1717
],
1818
"os_arches": {
19-
"linux-amd64": true
19+
"linux-amd64": true,
20+
"linux-arm64": true,
21+
"linux-arm": true
2022
},
2123
"docker_images": [
2224
{
2325
"image": "fn61/screen-server",
24-
"dockerfile_path": "Dockerfile"
26+
"dockerfile_path": "Dockerfile",
27+
"platforms": ["linux/amd64", "linux/arm64", "linux/arm/v7"]
2528
}
2629
]
2730
}

0 commit comments

Comments
 (0)