Skip to content

Commit

Permalink
fix(base): install QEMU for ‹RUN› in build action
Browse files Browse the repository at this point in the history
It appears that for building multi-arch images, you need to have some
layer of emulation installed, i.e., QEMU, just to be able to execute the
‹RUN› commands during the image build as the container image of different
architecture is still run on the host platform (therefore the execution
needs to be emulated).

Signed-off-by: Matej Focko <[email protected]>
  • Loading branch information
mfocko committed Dec 5, 2024
1 parent ac6cb2e commit e143088
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/base-image-rebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install QEMU dependency
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
Expand Down

0 comments on commit e143088

Please sign in to comment.