From 346a8a43752dc849b51727d8d2261bd7377d95ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LAGACHE?= <43389096+Asuniia@users.noreply.github.com> Date: Wed, 4 Mar 2026 11:57:11 +0100 Subject: [PATCH] fix: Feat/flow (#131) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix * fix * fix * fix * Update docker.yml * Update auto-release.yml * Update pr-checker.yml --------- Co-authored-by: Théo LAGACHE --- .github/workflows/pr-checker.yml | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-checker.yml b/.github/workflows/pr-checker.yml index 5fa16da2..d92be711 100644 --- a/.github/workflows/pr-checker.yml +++ b/.github/workflows/pr-checker.yml @@ -9,7 +9,11 @@ on: jobs: dry-run: name: Dry run - runs-on: ubuntu-latest + runs-on: ${{ matrix.platform == 'linux/amd64' && 'ubuntu-latest' || 'ubuntu-24.04-arm' }} + strategy: + fail-fast: false + matrix: + platform: [linux/amd64, linux/arm64] steps: - name: Checkout repository uses: actions/checkout@v4 @@ -22,7 +26,22 @@ jobs: with: context: . file: ./docker/dockerfile/Dockerfile + platforms: ${{ matrix.platform }} push: false tags: portabase/portabase:pr-${{ github.event.number }} - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: type=gha,scope=build-${{ matrix.platform }} + cache-to: type=gha,mode=max,scope=build-${{ matrix.platform }} + + - name: Prepare Artifact Data + id: prep + run: | + SAFE_PLATFORM=${{ matrix.platform == 'linux/amd64' && 'linux-amd64' || 'linux-arm64' }} + echo "safe_platform=$SAFE_PLATFORM" >> $GITHUB_OUTPUT + echo "portabase/portabase:pr-${{ github.event.number }}" > image.txt + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: image-${{ steps.prep.outputs.safe_platform }} + path: image.txt + retention-days: 1