From d9d2f8145e5ebd6f363b90cdb2169cc27b6429f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Wed, 14 Jan 2026 20:14:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=95=9C=E5=83=8F=E7=BC=96?= =?UTF-8?q?=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 841e481..b788e4f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,14 +78,6 @@ jobs: runs-on: ubuntu-latest needs: build if: github.ref_name == 'main' || startsWith(github.ref, 'refs/tags/v') - strategy: - matrix: - platform: [amd64, arm64] - include: - - platform: amd64 - arch: amd64 - - platform: arm64 - arch: arm64 steps: - uses: actions/checkout@v4 @@ -101,28 +93,28 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Publish to Docker Hub (${{ matrix.platform }}) + - name: Publish to Docker Hub if: github.ref_name == 'main' uses: docker/build-push-action@v6 with: - platforms: linux/${{ matrix.arch }} + platforms: linux/amd64,linux/arm64 context: . push: true tags: ${{ env.VERSION_TAG }} - cache-from: type=gha,scope=${{ matrix.platform }} + cache-from: type=gha - - name: Publish to Docker Hub latest and stable (${{ matrix.platform }}) + - name: Publish to Docker Hub latest and stable if: startsWith(github.ref, 'refs/tags/v') uses: docker/build-push-action@v6 with: - platforms: linux/${{ matrix.arch }} + platforms: linux/amd64,linux/arm64 context: . push: true tags: | ${{ env.VERSION_TAG }} ${{ env.LATEST_TAG }} ${{ env.STABLE_TAG }} - cache-from: type=gha,scope=${{ matrix.platform }} + cache-from: type=gha # 推送镜像到 GitHub Release publish-release: