From f0c758a89a2f1ee8e1a3ca82b613e0445b2efca4 Mon Sep 17 00:00:00 2001 From: mzz <2017@duck.com> Date: Tue, 14 Mar 2023 01:34:47 +0800 Subject: [PATCH] chore: use matrix for docker image building --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99ee454..c3ab271 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -137,6 +137,9 @@ jobs: tag: ${{ github.ref }} docker: + strategy: + matrix: + platform: [ linux/arm, linux/arm64, linux/amd64 ] runs-on: ubuntu-22.04 steps: - name: Checkout codebase @@ -173,7 +176,7 @@ jobs: context: . builder: ${{ steps.buildx.outputs.name }} file: Dockerfile - platforms: linux/arm,linux/arm64,linux/amd64 + platforms: ${{ matrix.platform }} push: true tags: | ${{ steps.prep.outputs.IMAGE }}:${{ steps.prep.outputs.TAG }}