diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 37e9f055..530b68c3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -44,19 +44,26 @@ jobs: json_file: 'tests.json' publish-docker-image: - name: Publish Test Results (Docker Image) + name: Publish Test Results (Docker Image ${{ matrix.arch }}) runs-on: ubuntu-latest permissions: checks: write pull-requests: write security-events: write + strategy: + fail-fast: false + matrix: + arch: [amd64, arm64] steps: - name: Checkout uses: actions/checkout@v3 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 + with: + image: tonistiigi/binfmt:latest + platforms: ${{ matrix.arch }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -67,6 +74,7 @@ jobs: with: load: true push: false + platforms: linux/${{ matrix.arch }} tags: enricomi/publish-unit-test-result-action:latest outputs: type=docker @@ -80,14 +88,14 @@ jobs: if: always() env: INPUT_GITHUB_TOKEN: ${{ github.token }} - INPUT_CHECK_NAME: Test Results (Docker Image) + INPUT_CHECK_NAME: Test Results (Docker Image ${{ matrix.arch }}) INPUT_FILES: "artifacts/**/*.xml" INPUT_JSON_FILE: "tests.json" INPUT_JSON_SUITE_DETAILS: true INPUT_JSON_TEST_CASE_RESULTS: true INPUT_REPORT_SUITE_LOGS: "any" run: | - docker run \ + docker run --platform linux/${{ matrix.arch }} \ --workdir $GITHUB_WORKSPACE \ --rm \ -e "INPUT_CHECK_NAME" \