From 6cf720250a89f1f1929b6b5b416a20cd505b40d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Sat, 12 Oct 2024 17:51:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=AE=80=E5=8C=96=20Docker=20=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E6=8E=A8=E9=80=81=E5=B7=A5=E4=BD=9C=E6=B5=81=EF=BC=8C?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=93=8D=E4=BD=9C=E7=B3=BB=E7=BB=9F=E7=9F=A9?= =?UTF-8?q?=E9=98=B5=E5=B9=B6=E5=BC=BA=E5=88=B6=E4=BD=BF=E7=94=A8=20Ubuntu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-build-push.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml index 8b005bb..32a9855 100644 --- a/.github/workflows/docker-build-push.yml +++ b/.github/workflows/docker-build-push.yml @@ -12,11 +12,11 @@ env: jobs: job: - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest, macos-latest] # https://docs.github.com/zh/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#用于公共存储库的-github-托管的标准运行器 - runs-on: ${{ matrix.os }} + # strategy: + # fail-fast: false + # matrix: + # os: [ubuntu-latest, macos-latest] # https://docs.github.com/zh/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#用于公共存储库的-github-托管的标准运行器 + runs-on: ubuntu-latest steps: - uses: actions/checkout@main - uses: yanhao98/semantic-release-action@main @@ -37,12 +37,12 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - uses: yanhao98/composite-actions/docker-build-push@main - # if: steps.semantic.outputs.next_release_published == 'true' + if: steps.semantic.outputs.next_release_published == 'true' id: docker-build-push with: build_file: ./Dockerfile.test build_platforms: linux/amd64,linux/arm64 - build_push: ${{ matrix.os == 'ubuntu-latest' && steps.semantic.outputs.next_release_published == 'true' }} + build_push: true build_load: false metadata_images: | docker.io/${{ vars.DOCKERHUB_USERNAME }}/docker-example