Skip to content

Commit

Permalink
Use native arm64 runner instead of qemu
Browse files Browse the repository at this point in the history
Avoid segfault probably related to
tonistiigi/binfmt#215
  • Loading branch information
andy5995 committed Feb 1, 2025
1 parent 3f70f7b commit cb4f350
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ env:

jobs:
build:
runs-on: ubuntu-latest
name: ${{ matrix.codename }}-${{ matrix.platform }}-image
runs-on: ${{ matrix.os }}
name: ${{ matrix.codename }}-${{ matrix.os }}-image
strategy:
matrix:
platform:
- linux/amd64
- linux/arm64
os:
- ubuntu-24.04-arm
- ubuntu-24.04
codename:
- focal
- jammy
Expand All @@ -35,7 +35,7 @@ jobs:
steps:
- name: Prepare
run: |
platform=${{ matrix.platform }}
platform=$(uname -m)
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -45,9 +45,6 @@ jobs:
with:
images: ${{ env.REGISTRY_IMAGE }}

- if: ${{ matrix.platform != 'linux/amd64' }}
name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
Expand All @@ -62,7 +59,6 @@ jobs:
context: .
build-args: CODENAME=${{ matrix.codename }}
file: ./Dockerfile
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
cache-from: type=registry,ref=${{ env.REGISTRY_IMAGE }}:${{ matrix.codename }}-${{ env.PLATFORM_PAIR }}-${{ env.VERSION }}-buildcache
Expand Down

0 comments on commit cb4f350

Please sign in to comment.