diff --git a/.github/workflows/build-base-image.yml b/.github/workflows/build-base-image.yml index dbbfb22..ed2c67d 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 e5f396f..bc263f2 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