Skip to content

Commit

Permalink
[docker] use arm64 runner instead of qemu (openthread#11220)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhui authored Feb 7, 2025
1 parent 521f95f commit 320b505
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,18 @@ permissions: # added using https://github.com/step-security/secure-workflows
jobs:

buildx:
name: buildx-${{ matrix.docker_name }}
runs-on: ubuntu-24.04
name: buildx-${{ matrix.docker_name }}-${{ matrix.arch }}
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- docker_name: environment
arch: amd64
runner: ubuntu-24.04
- docker_name: environment
arch: arm64
runner: ubuntu-24.04-arm
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
Expand All @@ -71,7 +76,7 @@ jobs:
run: |
DOCKER_IMAGE=openthread/${{ matrix.docker_name }}
DOCKER_FILE=etc/docker/${{ matrix.docker_name }}/Dockerfile
DOCKER_PLATFORMS=linux/amd64,linux/arm64
DOCKER_PLATFORMS=linux/${{ matrix.arch }}
VERSION=latest
TAGS="--tag ${DOCKER_IMAGE}:${VERSION}"
Expand All @@ -85,11 +90,6 @@ jobs:
--build-arg VCS_REF=${GITHUB_SHA::8} \
${TAGS} --file ${DOCKER_FILE} ." >> $GITHUB_OUTPUT
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:qemu-v8.1.5

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0

Expand Down

0 comments on commit 320b505

Please sign in to comment.