Skip to content

Commit cb4f350

Browse files
committed
Use native arm64 runner instead of qemu
Avoid segfault probably related to tonistiigi/binfmt#215
1 parent 3f70f7b commit cb4f350

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/docker.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ env:
2020

2121
jobs:
2222
build:
23-
runs-on: ubuntu-latest
24-
name: ${{ matrix.codename }}-${{ matrix.platform }}-image
23+
runs-on: ${{ matrix.os }}
24+
name: ${{ matrix.codename }}-${{ matrix.os }}-image
2525
strategy:
2626
matrix:
27-
platform:
28-
- linux/amd64
29-
- linux/arm64
27+
os:
28+
- ubuntu-24.04-arm
29+
- ubuntu-24.04
3030
codename:
3131
- focal
3232
- jammy
@@ -35,7 +35,7 @@ jobs:
3535
steps:
3636
- name: Prepare
3737
run: |
38-
platform=${{ matrix.platform }}
38+
platform=$(uname -m)
3939
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
4040
- name: Checkout
4141
uses: actions/checkout@v4
@@ -45,9 +45,6 @@ jobs:
4545
with:
4646
images: ${{ env.REGISTRY_IMAGE }}
4747

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

0 commit comments

Comments
 (0)