Skip to content

Commit

Permalink
arm support for GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
jredrejo committed Nov 12, 2024
1 parent 1a6a1d9 commit 702e812
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build_zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ jobs:
with:
repository: learningequality/pi-gen
ref: ${{ inputs.ref }}
- name: Set up QEMU for ARM32
uses: docker/setup-qemu-action@v2
with:
platforms: linux/arm/v7 # ARM32 architecture for Raspberry Pi
- name: Set default platform to ARM32
run: echo "DOCKER_DEFAULT_PLATFORM=linux/arm/v7" >> $GITHUB_ENV
- name: Download the debfile from URL and install
if: ${{ inputs.deb-url }}
run: make get-deb deb=${{ inputs.deb-url }}
Expand Down
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
FROM multiarch/qemu-user-static AS qemu

ARG BASE_IMAGE=debian:bullseye
FROM ${BASE_IMAGE}
ENV DEBIAN_FRONTEND noninteractive
FROM i386/debian:bullseye
ENV DEBIAN_FRONTEND=noninteractive


# Copy qemu-arm-static into the image
COPY --from=qemu /usr/bin/qemu-arm-static /usr/bin/

RUN apt-get -y update && \
apt-get -y install --no-install-recommends \
Expand Down

This file was deleted.

0 comments on commit 702e812

Please sign in to comment.