From 290540a3f510107087e90cfa860b0ac258547077 Mon Sep 17 00:00:00 2001 From: anthony sottile Date: Tue, 21 Jan 2025 09:22:27 -0500 Subject: [PATCH] use free arm workers for image build --- .github/workflows/image.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 28c77a4c..6b8aec2e 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -14,13 +14,12 @@ jobs: image: strategy: matrix: - arch: [amd64, arm64] - runs-on: ubuntu-latest + include: + - {arch: amd64, os: ubuntu-latest} + - {arch: arm64, os: ubuntu-24.04-arm} + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - - name: enable cross build - run: docker run --rm --privileged tonistiigi/binfmt --install arm64 - if: matrix.arch == 'arm64' - name: login run: docker login --username '${{ github.actor }}' --password-stdin ghcr.io <<< '${{ secrets.GITHUB_TOKEN }}' if: github.event_name == 'push' && github.ref == 'refs/heads/main'