Skip to content

Commit

Permalink
fix(ci, release): docker build timeout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Sep 16, 2023
1 parent 75dc5c5 commit b8b71a9
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit b8b71a9

Please sign in to comment.