From bd41735df2ebb42bd81202c9a897bb7768e0629e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Wed, 30 Oct 2024 12:57:01 +0800 Subject: [PATCH] Update build-base-image.yml --- .github/workflows/build-base-image.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-base-image.yml b/.github/workflows/build-base-image.yml index 526c3b188..72ccb408f 100644 --- a/.github/workflows/build-base-image.yml +++ b/.github/workflows/build-base-image.yml @@ -14,6 +14,9 @@ jobs: build-image: runs-on: ubuntu-latest if: github.event_name != 'pull_request' + strategy: + matrix: + platform: [linux/amd64, linux/arm64, linux/arm/v7] steps: - uses: actions/checkout@v4 - name: Set up QEMU @@ -30,7 +33,7 @@ jobs: with: context: . file: ./Dockerfile.runtime - platforms: linux/amd64,linux/arm64,linux/arm/v7 + platforms: ${{ matrix.platform }} push: true tags: ${{ secrets.DOCKERHUB_USERNAME }}/xiaomusic:${{ github.ref_name }}, ${{ secrets.DOCKERHUB_USERNAME }}/xiaomusic:runtime - name: Build and push builder @@ -38,6 +41,6 @@ jobs: with: context: . file: ./Dockerfile.builder - platforms: linux/amd64,linux/arm64,linux/arm/v7 + platforms: ${{ matrix.platform }} push: true tags: ${{ secrets.DOCKERHUB_USERNAME }}/xiaomusic:${{ github.ref_name }}, ${{ secrets.DOCKERHUB_USERNAME }}/xiaomusic:builder