diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml index a6f1680..d483688 100644 --- a/.github/workflows/docker-build-push.yml +++ b/.github/workflows/docker-build-push.yml @@ -12,7 +12,11 @@ env: jobs: job: - runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-15] # https://docs.github.com/zh/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#用于公共存储库的-github-托管的标准运行器 + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@main - uses: yanhao98/semantic-release-action@main @@ -38,7 +42,7 @@ jobs: with: build_file: ./Dockerfile.test build_platforms: linux/amd64,linux/arm64 - build_push: true + build_push: ${{ matrix.os == 'ubuntu-latest' }} build_load: false metadata_images: | docker.io/${{ vars.DOCKERHUB_USERNAME }}/docker-example diff --git a/.github/workflows/setup-node-environment.yml b/.github/workflows/setup-node-environment.yml index 985fb21..3cae5ae 100644 --- a/.github/workflows/setup-node-environment.yml +++ b/.github/workflows/setup-node-environment.yml @@ -16,8 +16,7 @@ jobs: fail-fast: false matrix: container-image: ["", "yanhao98/runner-images:pnpm"] - os: [ubuntu-latest, macos-15] # https://docs.github.com/zh/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#用于公共存储库的-github-托管的标准运行器 - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest container: image: ${{ matrix.container-image }} steps: