From ed6ade53d8d7ec936968b47125d01d9a57e8bd32 Mon Sep 17 00:00:00 2001 From: Delta1925 Date: Sun, 23 Apr 2023 23:32:56 +0200 Subject: [PATCH] Use a matrix to build for single archs in CI --- .github/workflows/docker.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index d51a43d..8272a31 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -7,6 +7,10 @@ on: jobs: build-and-push: runs-on: ubuntu-latest + strategy: + matrix: + platform: + [linux/amd64, linux/arm64, linux/arm/v7, linux/arm/v6, linux/386] steps: - name: Set up QEMU uses: docker/setup-qemu-action@v2 @@ -20,7 +24,7 @@ jobs: - name: Build and push uses: docker/build-push-action@v4 with: - platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/386 + platforms: ${{ matrix.platform }} push: true tags: delta1925/simple-wkd:latest,delta1925/simple-wkd:${{ github.ref_name }} cache-from: type=gha