Skip to content

Commit

Permalink
Merge pull request #284 from bgilbert/builder-linux-arm64
Browse files Browse the repository at this point in the history
workflows: add arm64 image to Linux builder container
  • Loading branch information
bgilbert authored Sep 9, 2024
2 parents 7c1c59e + 81f91f3 commit 0a45c2d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/container-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,21 @@ jobs:
name: Build
runs-on: ubuntu-24.04
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install qemu-user-static
- name: Check out repository
uses: actions/checkout@v4
- name: Build container
# Cross-build the arm64 container from amd64 for simplicity
run: |
podman build -t $CONTAINER_IMAGE builder/linux
podman build --manifest $CONTAINER_IMAGE \
--platform "linux/amd64,linux/arm64" \
builder/linux
- name: Push container
if: github.event_name != 'pull_request'
run: |
echo "${{ secrets.GITHUB_TOKEN }}" |
podman login ghcr.io -u $ --password-stdin
podman push $CONTAINER_IMAGE
podman manifest push $CONTAINER_IMAGE

0 comments on commit 0a45c2d

Please sign in to comment.