From b8b71a922412c21bdac693162be9818dba9fdbe3 Mon Sep 17 00:00:00 2001 From: Jonson Petard <41122242+greenhat616@users.noreply.github.com> Date: Sat, 16 Sep 2023 19:51:15 +0800 Subject: [PATCH] fix(ci, release): docker build timeout issue --- .github/workflows/release.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9905056..7f1fa31 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -115,9 +115,18 @@ jobs: file: jsdelivr_proxy-${{ matrix.target }}.${{ matrix.archive }} asset_name: jsdelivr_proxy-${{ matrix.target }}.${{ matrix.archive }} docker-release: - name: docker release + name: Release Docker ${matrix.platform} needs: release - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: ubuntu-latest + platform: linux/amd64 + file: ./manifest/docker/release/x86_64-linux-musl/Dockerfile + - os: ubuntu-latest + platform: linux/arm64 + file: ./manifest/docker/release/aarch64-linux-musl/Dockerfile steps: - name: Checkout uses: actions/checkout@v4 @@ -156,17 +165,8 @@ jobs: uses: docker/build-push-action@v5 with: context: . - file: ./manifest/docker/release/x86_64-linux-musl/Dockerfile - platforms: linux/amd64 - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - - name: Build and push - uses: docker/build-push-action@v5 - with: - context: . - file: ./manifest/docker/release/aarch64-linux-musl/Dockerfile - platforms: linux/arm64 + file: ${{ matrix.file }} + platforms: ${{ matrix.platform }} push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file