From 0765a2304836426f6f1289a75234b49e54ec22ac Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Fri, 27 Aug 2021 11:42:05 -0700 Subject: [PATCH] ci: test more commands when binfmt installed in kernel Signed-off-by: Tonis Tiigi --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d45bfcd7..2a77c3e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,14 +77,39 @@ jobs: with: config: .github/buildkit.toml - - name: Test + name: Test buildkit if: matrix.target == 'buildkit' uses: docker/bake-action@v1 with: + files: | + ./docker-bake.hcl + ${{ steps.meta.outputs.bake-file }} targets: buildkit-test - - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + - name: Load mainline for testing + if: matrix.target == 'mainline' + uses: docker/bake-action@v1 + with: + files: | + ./docker-bake.hcl + ${{ steps.meta.outputs.bake-file }} + targets: mainline + load: true + set: | + *.cache-from=type=local,src=/tmp/.binfmt-cache/${{ matrix.target }} + mainline.tags=tonistiigi/binfmt:test + - name: Test mainline + if: matrix.target == 'mainline' + run: | + docker run --rm --privileged tonistiigi/binfmt:test --uninstall amd64,arm64,arm,ppc64le,s390x,riscv64 + docker run --rm --privileged tonistiigi/binfmt:test --install all + docker run --rm arm64v8/alpine uname -a + docker run --rm arm32v7/alpine uname -a + docker run --rm ppc64le/alpine uname -a + docker run --rm s390x/alpine uname -a + docker run --rm tonistiigi/debian:riscv uname -a + docker run --rm -it --platform=linux/s390x s390x/ubuntu apt update + docker run --rm -it --platform=linux/ppc64le ppc64le/ubuntu apt update + docker run --rm -it --platform=linux/arm64 arm64v8/ubuntu apt update - name: Login to DockerHub if: startsWith(github.ref, 'refs/heads/')