Skip to content

Commit

Permalink
Merge pull request #188 from product-os/fix-armv6hf-base-image
Browse files Browse the repository at this point in the history
Use the belanalib/rpi-{alpine|debian} base image for armv6hf builds
  • Loading branch information
flowzone-app[bot] authored Apr 17, 2024
2 parents 6198701 + d6463ac commit 787fc25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ jobs:
DISTRO=${{ env.DISTRO }}
BALENA_ARCH=${{ env.ARCH }}
NODE_VERSION=${{ env.NODE_VERSION }}
BALENALIB_ARCH=${{ env.ARCH == 'armv6hf' && 'rpi' || env.ARCH }}
# https://github.com/unfor19/install-aws-cli-action
- name: setup awscli
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
ARG BALENA_ARCH=%%BALENA_ARCH%%
ARG BALENALIB_ARCH=%%BALENA_ARCH%%
ARG DISTRO=debian

FROM balenalib/${BALENA_ARCH}-debian:buster-build AS debian
FROM balenalib/${BALENALIB_ARCH}-debian:buster-build AS debian

ARG BALENA_ARCH=%%BALENA_ARCH%%
ENV BUILD_FLAGS='--prefix=/'
ENV DEST_DIR=node-v${NODE_VERSION}-linux-${BALENA_ARCH}
ENV TAR_FILE=node-v${NODE_VERSION}-linux-${BALENA_ARCH}.tar.gz

FROM balenalib/${BALENA_ARCH}-alpine:3.18-build AS alpine
FROM balenalib/${BALENALIB_ARCH}-alpine:3.18-build AS alpine

ARG BALENA_ARCH=%%BALENA_ARCH%%
ENV BUILD_FLAGS='--prefix=/ --shared-zlib'
Expand Down

0 comments on commit 787fc25

Please sign in to comment.