From 94b03a97d4a4f04e39a7ec1ab2e2439381e02df9 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Tue, 7 Jan 2025 19:02:48 +0100 Subject: [PATCH] ci: build amd64 and arm64 image on the correct runner (#4) Reviewed-on: https://gitea.t000-n.de/t.behrendt/ts3gotify/pulls/4 Co-authored-by: Timo Behrendt Co-committed-by: Timo Behrendt --- .gitea/workflows/cd.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 37f68c5..db7a826 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -31,16 +31,18 @@ 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 - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -62,9 +64,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 }}