Skip to content

Commit

Permalink
add multiplatform build
Browse files Browse the repository at this point in the history
  • Loading branch information
jehy committed Apr 19, 2024
1 parent 41b0c0d commit f525984
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ jobs:
--aarch64 \
--image "dbstats-addon-{arch}" \
--target dbstats \
--additional-tag stable \
--additional-tag ${{ github.event.release.tag_name}}
--additional-tag stable
# - name: Build and push Docker image
# uses: docker/build-push-action@v5
Expand Down
9 changes: 7 additions & 2 deletions dbstats/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# Install requirements for add-on
RUN apk update \
&& apk add --no-cache --virtual .build-dependencies \
build-base=0.5-r3 \
linux-headers=6.5-r0 \
py3-pip=23.3.1-r0 \
python3-dev=3.11.9-r0 \
&& apk add sqlite \
&& apk add --no-cache \
nginx=1.24.0-r15 \
Expand All @@ -15,8 +20,8 @@ RUN apk update \
# Copy root file system
COPY rootfs /

COPY --from=ghcr.io/jehy/hass-dbstats:0.3.6 /usr/src/app /usr/src/app
COPY --from=ghcr.io/jehy/hass-dbstats:0.3.6 /var/www/html /var/www/html
COPY --from=ghcr.io/jehy/hass-dbstats:0.3.8 /usr/src/app /usr/src/app
COPY --from=ghcr.io/jehy/hass-dbstats:0.3.8 /var/www/html /var/www/html
WORKDIR /usr/src/app
RUN npm ci --omit=dev ## need to reinstall deps because they can be binary incompatible

Expand Down
4 changes: 2 additions & 2 deletions dbstats/config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: DbStats
version: 0.4.6
version: 0.5.0
slug: dbstats
description: Database stats for Home Assistant
image: ghcr.io/jehy/hass-dbstats-addon
image: ghcr.io/jehy/hass-dbstats-addon-{arch}
url: https://github.com/jehy/hass-addons/blob/master/dbstats/README.MD
codenotary: [email protected]
ingress: true
Expand Down

0 comments on commit f525984

Please sign in to comment.