From 7a53e12012a8f0d8542e71510b2e34b912da44e6 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Tue, 7 Jan 2025 18:33:58 +0100 Subject: [PATCH] ci: build amd64 and arm64 image on the correct runner --- .gitea/workflows/cd.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 37f68c5..30767db 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -31,9 +31,14 @@ jobs: build_and_push: name: Build and push + strategy: + matrix: + arch: [amd64, arm64] needs: - test - runs-on: ubuntu-latest + runs-on: + - ubuntu-latest + - linux_${{ matrix.arch }} steps: - name: Checkout uses: actions/checkout@v4 @@ -62,9 +67,7 @@ jobs: with: context: . file: ./Dockerfile - platforms: | - linux/amd64 - linux/arm64 + platform: linux/${{ matrix.arch }} push: true tags: | ${{ env.DOCKER_REGISTRY }}/t.behrendt/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}