Skip to content

Commit 0a45c2d

Browse files
authored
Merge pull request #284 from bgilbert/builder-linux-arm64
workflows: add arm64 image to Linux builder container
2 parents 7c1c59e + 81f91f3 commit 0a45c2d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/container-linux.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,21 @@ jobs:
2828
name: Build
2929
runs-on: ubuntu-24.04
3030
steps:
31+
- name: Install dependencies
32+
run: |
33+
sudo apt-get update
34+
sudo apt-get -y install qemu-user-static
3135
- name: Check out repository
3236
uses: actions/checkout@v4
3337
- name: Build container
38+
# Cross-build the arm64 container from amd64 for simplicity
3439
run: |
35-
podman build -t $CONTAINER_IMAGE builder/linux
40+
podman build --manifest $CONTAINER_IMAGE \
41+
--platform "linux/amd64,linux/arm64" \
42+
builder/linux
3643
- name: Push container
3744
if: github.event_name != 'pull_request'
3845
run: |
3946
echo "${{ secrets.GITHUB_TOKEN }}" |
4047
podman login ghcr.io -u $ --password-stdin
41-
podman push $CONTAINER_IMAGE
48+
podman manifest push $CONTAINER_IMAGE

0 commit comments

Comments
 (0)