From a66846118bd87e5a58611843d5dbf92c44b8f8f7 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Thu, 14 Mar 2024 14:46:15 +0100 Subject: [PATCH] ci: set correct arch for rootfs tests With the commit 01e5cfc "CI: Add target/arch tags (no suffix) for snapshot images"[1] the os/platform is set for all images, which is usually different from what the GitHub action runner uses (x86). The Docker deamon still tries to fetch the x86 version and fails. This commit explicitly sets the fitting arch. [1]: https://github.com/openwrt/docker/commit/01e5cfccd73a72ecab730496607c7c22b904f366 Signed-off-by: Paul Spooren (cherry picked from commit d359fa04eda29638b9326c194490685c1177fd49) --- .github/workflows/multi-arch-test-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/multi-arch-test-build.yml b/.github/workflows/multi-arch-test-build.yml index 87ed8f4f48..da2eee3338 100644 --- a/.github/workflows/multi-arch-test-build.yml +++ b/.github/workflows/multi-arch-test-build.yml @@ -158,11 +158,11 @@ jobs: - name: Build Docker container if: ${{ matrix.runtime_test }} run: | - docker build -t test-container --build-arg ARCH .github/workflows/ + docker build --platform linux/${{ matrix.arch }} -t test-container --build-arg ARCH .github/workflows/ env: ARCH: ${{ matrix.arch }}-${{ env.BRANCH }} - name: Test via Docker container if: ${{ matrix.runtime_test }} run: | - docker run --rm -v $GITHUB_WORKSPACE:/ci test-container + docker run --platform linux/${{ matrix.arch }} --rm -v $GITHUB_WORKSPACE:/ci test-container