From a2834afaa4aa7902680b4d92118b838c52cea431 Mon Sep 17 00:00:00 2001 From: zijiren233 Date: Sat, 18 Jan 2025 04:13:19 +0800 Subject: [PATCH] feat: arm64 runner --- .github/workflows/release.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c1a78c1..64f026f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -173,11 +173,25 @@ jobs: matrix: include: - arch: amd64 - runs-on: ubuntu-24.04 - arch: arm64 runs-on: ubuntu-24.04-arm - runs-on: ${{ matrix.runs-on }} + runs-on: ${{ matrix.runs-on || 'ubuntu-24.04' }} steps: + - name: Login to GitHub Container Registry + if: ${{ github.event_name != 'pull_request' }} + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Login to DockerHub + uses: docker/login-action@v3 + if: ${{ github.event_name != 'pull_request' && env.DOCKERHUB_REPO }} + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Checkout uses: actions/checkout@v4 with: