Skip to content

Commit

Permalink
Use qemu / buildx for aarch64 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
duckfullstop committed Jan 2, 2025
1 parent c64e79c commit 1c05c14
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
with:
fetch-depth: '0'

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Generate CRI metadata
id: meta
uses: docker/metadata-action@v4
Expand All @@ -29,17 +34,20 @@ jobs:
tags: |
latest
- name: Set up Buildx
uses: docker/setup-buildx-action@v2

- name: Login to GHCI
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}


- name: Build and push
uses: docker/build-push-action@v4
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
Expand Down

0 comments on commit 1c05c14

Please sign in to comment.