From 2d814c14161cc27987e9e557a47a28ff60a74d43 Mon Sep 17 00:00:00 2001 From: Fallenbagel <98979876+Fallenbagel@users.noreply.github.com> Date: Sat, 18 Jan 2025 17:49:35 +0800 Subject: [PATCH] ci: attempt to fix arm64 runners with proper scoped caching (#1275) Added platform specific cache scoping and turned off provenance to prevent manifest merging. In addition we are now using ubuntu24.04 in an attempt to get the job to run as ubuntu-22.04 were stalled for more than 18 hours. --- .github/workflows/ci.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91123e05d..267dec62e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,7 +48,11 @@ jobs: if: github.ref == 'refs/heads/develop' && !contains(github.event.head_commit.message, '[skip ci]') strategy: matrix: - runner: [ubuntu-22.04, ubuntu-22.04-arm64] + include: + - runner: ubuntu-22.04 + platform: linux/amd64 + - runner: ubuntu-22.04-arm64 + platform: linux/arm64 runs-on: ${{ matrix.runner }} steps: - name: Checkout @@ -77,15 +81,16 @@ jobs: context: . file: ./Dockerfile # platforms: linux/amd64,linux/arm64 - platforms: ${{ matrix.runner == 'ubuntu-22.04' && 'linux/amd64' || 'linux/arm64' }} + platforms: ${{ matrix.platform }} push: true build-args: | COMMIT_TAG=${{ github.sha }} tags: | fallenbagel/jellyseerr:develop ghcr.io/${{ env.OWNER_LC }}/jellyseerr:develop - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: type=gha,scope=${{ matrix.platform }} + cache-to: type=gha,mode=max,scope=${{ matrix.platform }} + provenance: false discord: name: Send Discord Notification