From 6d7ff48913ac52d7e441ff1c54bbb9b356a6ea40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Wed, 30 Oct 2024 18:50:26 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E4=BF=AE=E6=94=B9=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-base-image.yml | 2 +- .github/workflows/ci.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-base-image.yml b/.github/workflows/build-base-image.yml index dbbfb227ff..ed2c67dbd1 100644 --- a/.github/workflows/build-base-image.yml +++ b/.github/workflows/build-base-image.yml @@ -39,7 +39,7 @@ jobs: tags: ${{ secrets.DOCKERHUB_USERNAME }}/xiaomusic:${{ github.ref_name }}, ${{ secrets.DOCKERHUB_USERNAME }}/xiaomusic:runtime cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new - + - name: Build and push builder uses: docker/build-push-action@v4 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e5f396ffb9..bc263f2958 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,7 @@ jobs: with: platforms: ${{ matrix.platform }} context: . + file: ./Dockerfile push: false load: true tags: ${{ env.TAGNAME }} @@ -53,8 +54,9 @@ jobs: - name: Publish to Docker Hub uses: docker/build-push-action@v6 with: - platforms: ${{ matrix.platform }} + platforms: linux/amd64, linux/arm64, linux/arm/v7 context: . + file: ./Dockerfile push: true tags: ${{ env.TEST_TAG }} cache-from: type=local,src=/tmp/.buildx-cache