From de2792fb2ca8ca6706552994461cebf870c8bc0a Mon Sep 17 00:00:00 2001 From: New Future Date: Mon, 9 Jun 2025 17:45:36 +0000 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8Dqemu=20build=20and=20tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5595113..0f201ae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -315,7 +315,7 @@ jobs: exclude: # PR 时不构建 QEMU 镜像 - host: qemu - # event: pull_request + event: pull_request runs-on: ubuntu-${{ matrix.host == 'arm' && '24.04-arm' || 'latest' }} env: @@ -433,9 +433,9 @@ jobs: - uses: actions/download-artifact@v4 with: name: docker-arm - # - uses: actions/download-artifact@v4 - # with: - # name: docker-qemu + - uses: actions/download-artifact@v4 + with: + name: docker-qemu - uses: docker/login-action@v3 with: @@ -452,8 +452,7 @@ jobs: set -ex for f in $(ls ddns-oci-*.tar); do docker load -i "$f" - tag=${{ github.ref_name || 'test' }}-$(basename "$f" | sed 's/ddns-oci-//;s/.tar//') - docker push ${{ env.DOCKER_IMG }}:$tag + docker push ${{ env.DOCKER_IMG }}:$(basename "$f" | sed 's/ddns-oci-//;s/.tar//') done - name: merge and push images run: |