From 8dbf54bdb005b16b01087ee6ea8d8b6d2825e34a Mon Sep 17 00:00:00 2001 From: GrantBirki Date: Thu, 16 Jan 2025 22:30:59 -0800 Subject: [PATCH 1/2] build `linux/amd64` on ubuntu-latest and `linux/arm64` on ubuntu-24.04-arm --- .github/workflows/docker.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e01205f..e58ca15 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -34,7 +34,16 @@ permissions: jobs: docker: name: docker - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, ubuntu-24.04-arm] + platform: [linux/amd64, linux/arm64] + include: + - os: ubuntu-latest + platform: linux/amd64 + - os: ubuntu-24.04-arm + platform: linux/arm64 steps: - name: checkout @@ -73,7 +82,7 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64,linux/arm64 + platforms: ${{ matrix.platform }} - name: digest env: From 2072c5cf04c74b5b8e7065e81dbfe50af0815d14 Mon Sep 17 00:00:00 2001 From: GrantBirki Date: Thu, 16 Jan 2025 22:36:29 -0800 Subject: [PATCH 2/2] fix --- .github/workflows/docker.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e58ca15..2cd6c7d 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -37,8 +37,6 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, ubuntu-24.04-arm] - platform: [linux/amd64, linux/arm64] include: - os: ubuntu-latest platform: linux/amd64