From 47ac6bfc8862dceecb6fc12a5f980ce709b8f801 Mon Sep 17 00:00:00 2001 From: Luca Corrieri Date: Fri, 17 Jan 2025 10:51:31 +0100 Subject: [PATCH] chore(ci): use ARM runners for ARM builds --- .github/workflows/build-and-push.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-push.yaml b/.github/workflows/build-and-push.yaml index cb2931d4..74513fed 100644 --- a/.github/workflows/build-and-push.yaml +++ b/.github/workflows/build-and-push.yaml @@ -11,20 +11,22 @@ permissions: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.platform.runner }} strategy: fail-fast: false matrix: platform: - - linux/amd64 - - linux/arm64 + - name: linux/amd64 + runner: ubuntu-latest + - name: linux/arm64 + runner: ubuntu-24.04-arm steps: - name: Checkout uses: actions/checkout@v4 - name: Prepare run: | - platform=${{ matrix.platform }} + platform=${{ matrix.platform.name }} echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV - name: Get Build timestamp and branch name @@ -63,7 +65,7 @@ jobs: id: build uses: docker/build-push-action@v6 with: - platforms: ${{ matrix.platform }} + platforms: ${{ matrix.platform.name }} build-args: | VERSION=${{ env.VERSION }} BUILD_TIMESTAMP=${{ env.BUILD_TIMESTAMP }}