Skip to content

Commit

Permalink
Fixed issue blocking the image build process via GitHub Actions for a…
Browse files Browse the repository at this point in the history
…rmhf and armv7
  • Loading branch information
bropat committed Aug 29, 2024
1 parent ee9ad78 commit 5a18a58
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
19 changes: 16 additions & 3 deletions eufy-security-ws/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
ARG BUILD_FROM
FROM $BUILD_FROM

ARG RUNTIME_FROM
ARG EUFY_SECURITY_WS_VERSION

WORKDIR /usr/src/app
FROM $BUILD_FROM AS build

WORKDIR /tmp

RUN \
set -x \
&& apk add --no-cache \
Expand All @@ -13,6 +15,17 @@ RUN \
&& npm install --force \
"eufy-security-ws@${EUFY_SECURITY_WS_VERSION}"

FROM $RUNTIME_FROM

WORKDIR /usr/src/app
RUN \
set -x \
&& apk add --no-cache \
nodejs \
npm \
jq

COPY --from=build /tmp ./
COPY run.sh /
RUN chmod a+x /run.sh
WORKDIR /data
Expand Down
6 changes: 6 additions & 0 deletions eufy-security-ws/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
build_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.20
amd64: ghcr.io/home-assistant/amd64-base:3.20
armhf: ghcr.io/home-assistant/armhf-base:3.18
armv7: ghcr.io/home-assistant/armv7-base:3.18
i386: ghcr.io/home-assistant/i386-base:3.20
runtime_from:
aarch64: ghcr.io/home-assistant/aarch64-base:3.20
amd64: ghcr.io/home-assistant/amd64-base:3.20
armhf: ghcr.io/home-assistant/armhf-base:3.20
Expand Down

0 comments on commit 5a18a58

Please sign in to comment.