From a9a6ead73faec6eb0eafacbeedbc3e53edcd1d57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Wed, 30 Oct 2024 12:58:18 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7fefd38..2913d70 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,9 +38,11 @@ jobs: build-image: runs-on: ubuntu-latest - #needs: release-pypi # run unless event type is pull_request if: github.event_name != 'pull_request' + strategy: + matrix: + platform: [linux/amd64, linux/arm64, linux/arm/v7] steps: - uses: actions/checkout@v3 - name: Set up QEMU @@ -56,6 +58,6 @@ jobs: uses: docker/build-push-action@v4 with: context: . - 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:latest, ${{ secrets.DOCKERHUB_USERNAME }}/xiaomusic:stable