Update release.yml

This commit is contained in:
涵曦 2024-10-30 12:58:18 +08:00 committed by GitHub
parent bd41735df2
commit a9a6ead73f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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